:root {
  /* Primary palette derived from image */
  --ocean:       #66c1b8;   /* darker base teal */
  --ocean-mid:   #86b2ac;   /* mid tone */
  --ocean-light: #9bbeb8;   /* exact image color */

  /* Accent colors (kept warm contrast for UI clarity) */
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;

  /* Neutrals tuned to the cooler palette */
  --white:       #f4f8f7;
  --white-dim:   rgba(244, 248, 247, 0.7);
  --white-faint: rgba(244, 248, 247, 0.12);

  /* Text colors adjusted for readability on teal */
  --text:        #1f2d2b;
  --text-muted:  #5f7572;

  /* Layout */
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;

  /* Shadows matched to new color temperature */
  --shadow:      0 8px 40px rgba(65, 230, 213, 0.18);
  --shadow-lg:   0 20px 60px rgba(103, 210, 199, 0.28);
}
/* :root {
  --ocean:       #0a1628;
  --ocean-mid:   #0d2244;
  --ocean-light: #1a3a6b;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --white:       #f8f6f0;
  --white-dim:   rgba(248, 246, 240, 0.7);
  --white-faint: rgba(248, 246, 240, 0.12);
  --text:        #1a1a2e;
  --text-muted:  #5a6a80;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --shadow:      0 8px 40px rgba(10, 22, 40, 0.18);
  --shadow-lg:   0 20px 60px rgba(10, 22, 40, 0.28);
} */

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p  { font-size: 1rem; color: var(--text-muted); }

.gold { color: var(--gold-light); }
em   { font-style: italic; color: var(--gold); }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin: 0.5rem 0 1rem; }
.section-header h3 { margin: 0.5rem 0 1rem; }
.section-header p  { font-size: 1.05rem; }
.section-header.light h2,
.section-header.light h3 { color: var(--white); }
.section-header.light p  { color: var(--white-dim); }
.section-header.light .section-label { color: var(--gold); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: #000000;
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-light); color: #000000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(248,246,240,0.4);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   NAV
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { text-decoration: none; }
.logo-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logo-placeholder.small { font-size: 1.2rem; margin-bottom: 0.5rem; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: rgba(248,246,240,0.8);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: #000000 !important;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: #000000 !important; }
.toggle_button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.toggle_button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(26,58,107,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--ocean) 0%, #0d2a50 50%, #071220 100%);
}
/* Animated wave lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(201,168,76,0.04) 80px,
      rgba(201,168,76,0.04) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(26,58,107,0.15) 80px,
      rgba(26,58,107,0.15) 81px
    );
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(10,22,40,0.4) 0%, transparent 70%);
}
.hero-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
}
.logo-img-placeholder {
  width: 420px;
  height: 420px;
  border: 2px dashed rgba(201,168,76,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-headline {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  background: var(--white);
  padding: 7rem 0;
}
.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.manifesto-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ocean);
  margin-bottom: 2rem;
  line-height: 1.35;
}
.manifesto-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================
   SOLUTIONS
   ============================================ */
.solutions { background: #f4f2ec; }

.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.solution-block:last-child { margin-bottom: 0; }
.solution-block.reverse { direction: rtl; }
.solution-block.reverse > * { direction: ltr; }

.solution-visual { position: relative; }
.solution-img-placeholder,
.solution-video-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border: 1px dashed rgba(201,168,76,0.3);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.solution-video-placeholder { gap: 1rem; cursor: pointer; transition: var(--transition); }
.solution-video-placeholder:hover { border-color: var(--gold); }
.play-btn {
  width: 64px;
  height: 64px;
  color: var(--gold);
  transition: transform var(--transition);
}
.solution-video-placeholder:hover .play-btn { transform: scale(1.1); }

.solution-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ocean);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}
.solution-tag.accent { background: var(--gold); color: #000000; }

.solution-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: rgba(10,22,40,0.08);
  line-height: 1;
  display: block;
  margin-bottom: -0.5rem;
}
.solution-content h3 { color: var(--ocean); margin-bottom: 1rem; }
.solution-content p  { margin-bottom: 1.5rem; }

.solution-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
}
.solution-highlights li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.solution-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.client-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: rgba(10,22,40,0.07);
  color: var(--ocean-light);
  border: 1px solid rgba(10,22,40,0.12);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--ocean);
  color: var(--white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.team-card {
  background: var(--white-faint);
  border: 1px solid rgba(248,246,240,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.team-card:hover {
  background: rgba(248,246,240,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ocean-light);
  border: 2px dashed rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 1.2rem;
}
.team-info h4 { color: var(--white); margin-bottom: 0.3rem; }
.team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.team-info p { font-size: 0.9rem; color: var(--white-dim); }

.collaborators { text-align: center; }
.collab-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.collab-logo-item {
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(248,246,240,0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: var(--transition);
}
.collab-logo-item:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   INITIATIVES
   ============================================ */
.initiatives { background: var(--white); }
.initiatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.initiative-card {
  background: #f4f2ec;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(10,22,40,0.06);
  transition: var(--transition);
}
.initiative-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.initiative-card.featured {
  background: #1a2e3d;
  border-color: rgba(201,168,76,0.2);
}
.initiative-card.featured h4 { color: #ffffff; }
.initiative-card.featured p  { color: rgba(255,255,255,0.8); }
.initiative-icon {
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.initiative-card h4 { color: var(--ocean); margin-bottom: 0.8rem; }
.initiative-card p  { font-size: 0.95rem; margin-bottom: 1.2rem; }
.initiative-partner {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.initiative-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean) 100%);
  padding: 7rem 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-text .section-label { color: var(--gold); }
.contact-text h2 { color: var(--white); margin: 0.5rem 0 1rem; }
.contact-text p  { color: var(--white-dim); margin-bottom: 2rem; }

/* Decorative globe */
.contact-visual { display: flex; justify-content: center; }
.contact-globe {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
  animation: globeSpin 12s linear infinite;
}
.globe-ring        { width: 240px; height: 240px; }
.globe-ring.r2     { width: 170px; height: 170px; animation-duration: 8s; animation-direction: reverse; border-color: rgba(201,168,76,0.3); }
.globe-ring.r3     { width: 100px; height: 100px; animation-duration: 5s; border-color: rgba(201,168,76,0.5); }
.globe-dot {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(201,168,76,0.6);
}
@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ocean);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(248,246,240,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--white-dim); max-width: 260px; }
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(248,246,240,0.06);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom span { font-size: 0.8rem; color: rgba(248,246,240,0.35); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .solution-block,
  .solution-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .initiatives-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-visual { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,22,40,0.98); padding: 1.5rem 2rem; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .toggle_button { display: flex; }
  section { padding: 4rem 0; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.5rem;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(248,246,240,0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  font-family: 'Inter', sans-serif;
}
.lang-btn:hover  { color: var(--gold-light); }
.lang-btn.active { color: var(--gold); font-weight: 600; }
.lang-divider    { color: rgba(248,246,240,0.2); font-size: 0.75rem; user-select: none; }

/* ============================================
   JAPANESE FONT OVERRIDE
   ============================================ */
.lang-ja body,
body.lang-ja {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
}
body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4 {
  font-family: 'Noto Sans JP', 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
body.lang-ja p,
body.lang-ja li,
body.lang-ja span,
body.lang-ja a {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  line-height: 1.9;
}

@media (max-width: 700px) {
  .lang-toggle { margin-left: 0.5rem; }
}

/* ============================================
   LOGO IMAGES
   ============================================ */
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.hero-logo-img {
  width: 480px;
  height: auto;
  opacity: 0.15;
  border-radius: 50%;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

/* ============================================
   BADGE LINKS
   ============================================ */
.badge-link {
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.badge-link:hover {
  background: var(--gold);
  color: #000000;
  border-color: var(--gold);
}

/* ============================================
   COLLABORATOR CARDS (from JSON)
   ============================================ */
.collab-logo-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.collab-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.collab-name {
  white-space: nowrap;
}

/* Internal vs External collaborator styling */
.collab-internal {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
}
.collab-internal:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
}
.collab-external {
  border-color: rgba(248,246,240,0.15);
}
.collab-external:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   INSTAGRAM EMBED
   ============================================ */
.solution-video-embed {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.solution-video-embed iframe,
.solution-video-embed video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
