/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   :root {
    --primary: #1a4a2e;
    --primary-light: #2d6e45;
    --secondary: #c8a84b;
    --secondary-hover: #d4b55a;
    
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-main: #ffffff;
    --bg-light: #f4f6f0;
    --bg-dark: #0d2a1a;
    
    --border-color: #eaeaea;
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 32px rgba(26,74,46,0.1);
    --shadow-lg: 0 20px 48px rgba(26,74,46,0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  
  a { color: inherit; text-decoration: none; transition: var(--transition); }
  ul { list-style: none; }
  
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .section-padding { padding: 120px 0; }
  .bg-light { background-color: var(--bg-light); }
  .bg-dark { background-color: var(--bg-dark); color: #fff; }
  .text-center { text-align: center; }
  
  /* ==========================================================================
     Typography
     ========================================================================== */
  .section-header { text-align: center; margin-bottom: 64px; }
  .section-label {
    display: inline-block; font-family: 'Inter', sans-serif; font-size: 14px;
    font-weight: 700; letter-spacing: 0.2em; color: var(--secondary);
    text-transform: uppercase; margin-bottom: 16px;
  }
  .label-light { color: var(--secondary); }
  .section-title { font-size: clamp(32px, 5vw, 44px); font-weight: 900; color: var(--primary); line-height: 1.3; }
  .title-light { color: #fff; }
  .section-desc { max-width: 700px; margin: 24px auto 0; font-size: 16px; color: var(--text-muted); }
  
  /* ==========================================================================
     Buttons
     ========================================================================== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; border-radius: var(--radius-full); font-weight: 700;
    font-size: 16px; cursor: pointer; transition: var(--transition); border: none;
  }
  .btn-login { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 24px; font-size: 14px; }
  .btn-login:hover { background-color: var(--primary); color: #fff; }
  .btn-primary { background-color: var(--secondary); color: #1a1a1a; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background-color: var(--secondary-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .btn-join { background-color: var(--primary); color: #fff; font-size: 18px; padding: 20px 48px; width: 100%; max-width: 400px; margin-top: 32px; }
  .btn-join:hover { background-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
  
  /* ==========================================================================
     Header
     ========================================================================== */
  .header {
    position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px); z-index: 1000; transition: var(--transition);
  }
  .header.scrolled { box-shadow: var(--shadow-sm); }
  .header-container { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1400px; margin: 0 auto; padding: 0 32px; }
  .logo a { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: 0.05em; }
  .global-nav ul { display: flex; gap: 40px; }
  .global-nav a { font-weight: 700; font-size: 14px; color: var(--text-main); }
  .global-nav a:hover { color: var(--secondary); }
  
  /* ==========================================================================
     Hero Section
     ========================================================================== */
  .hero {
    position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 24px; overflow: hidden; background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  }
  .hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 70% 30%, rgba(200,168,75,0.2) 0%, transparent 60%);
  }
  .hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; animation: fadeUp 1.2s ease-out forwards; }
  .hero-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.1em; }
  .hero-title { color: #fff; font-size: clamp(36px, 6vw, 64px); line-height: 1.2; margin-bottom: 24px; font-weight: 900; }
  .hero-title .highlight { color: var(--secondary); }
  .hero-subtitle { color: rgba(255,255,255,0.7); font-family: 'Inter', sans-serif; font-size: 18px; letter-spacing: 0.1em; margin-bottom: 48px; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
  
  /* ==========================================================================
     Philosophy
     ========================================================================== */
  .philosophy-content { text-align: center; max-width: 800px; margin: 0 auto; }
  .philosophy-catch { font-size: clamp(24px, 3vw, 32px); color: var(--primary); margin-bottom: 32px; font-weight: 900; }
  .philosophy-text { font-size: 18px; line-height: 2.2; color: var(--text-main); margin-bottom: 48px; font-weight: 500; }
  .philosophy-keywords { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
  .philosophy-keywords span { font-weight: 700; color: var(--secondary); font-size: 18px; }
  
  /* ==========================================================================
     Concept Grid
     ========================================================================== */
  .concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
  .concept-card { background: #fff; padding: 48px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition); border: 1px solid rgba(0,0,0,0.03); }
  .concept-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(200,168,75,0.3); }
  .concept-card .icon { font-size: 48px; margin-bottom: 24px; }
  .concept-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; line-height: 1.4; }
  .concept-card h3 span { font-size: 14px; color: var(--secondary); display: block; margin-top: 4px; }
  .concept-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
  
  /* ==========================================================================
     Projects
     ========================================================================== */
  .projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .project-item { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--secondary); transition: var(--transition); }
  .project-item:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
  .project-icon { font-size: 32px; margin-bottom: 16px; }
  .project-item h3 { font-size: 24px; color: var(--primary); margin-bottom: 20px; font-weight: 900; }
  .project-item ul li { position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 16px; color: var(--text-main); font-weight: 500; }
  .project-item ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; }
  
  /* ==========================================================================
     Organization
     ========================================================================== */
  .org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 32px; }
  .org-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 40px; text-align: center; transition: var(--transition); }
  .org-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
  .org-role { display: inline-block; background: var(--secondary); color: #1a1a1a; padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.1em; }
  .org-name { font-size: 28px; font-weight: 900; margin-bottom: 16px; letter-spacing: 0.1em; }
  .org-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; text-align: left; }
  .org-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .org-sub-grid .org-card { padding: 32px 24px; }
  .org-sub-grid .org-name { font-size: 22px; margin-bottom: 0; }
  
  /* ==========================================================================
     Join Us
     ========================================================================== */
  .join-box { background: linear-gradient(135deg, var(--bg-light), #fff); border-radius: var(--radius-lg); padding: 64px; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); position: relative; overflow: hidden; }
  .join-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--secondary); }
  .join-content h2 { font-size: 36px; color: var(--primary); margin-bottom: 24px; font-weight: 900; }
  .join-price { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
  .join-price span { font-size: 32px; color: #e63946; margin-left: 8px; }
  .join-desc { font-size: 18px; margin-bottom: 32px; color: var(--text-muted); }
  .join-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 600px; margin: 0 auto; text-align: left; }
  .join-benefits li { font-size: 16px; font-weight: 700; color: var(--primary); background: rgba(26,74,46,0.05); padding: 12px 20px; border-radius: 8px; }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .footer { background-color: var(--bg-dark); color: rgba(255,255,255,0.5); padding: 64px 0 32px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
  .footer-brand h2 { color: #fff; font-size: 20px; margin-bottom: 8px; letter-spacing: 0.1em; }
  .footer-bottom { margin-top: 48px; font-size: 12px; font-family: 'Inter', sans-serif; }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 992px) {
    .concept-grid, .org-grid, .org-sub-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .global-nav { display: none; }
    .hero-title { font-size: 32px; }
    .concept-grid, .org-grid, .org-sub-grid, .join-benefits { grid-template-columns: 1fr; }
    .join-box { padding: 40px 24px; }
    .section-padding { padding: 80px 0; }
  }

/* ==========================================================================
   Mega Menu Styles (Imported from JSTE structure)
   ========================================================================== */
.global-nav { position: static; }
.global-nav > ul { position: static; }
.global-nav > ul > li { position: static; } /* サブメニューを全幅にするため */
.global-nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 28px 0; }
.global-nav > ul > li > a .arrow { font-size: 10px; color: var(--secondary); transition: var(--transition); }
.global-nav > ul > li:hover > a .arrow { transform: rotate(180deg); color: var(--primary); }

.sub-menu {
  position: absolute;
  top: 80px; /* ヘッダーの高さ */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(26,74,46,0.1);
  border-top: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding: 48px 0;
  pointer-events: none;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.submenu-col {
  flex: 1;
  min-width: 200px;
}

.submenu-col h4 {
  font-size: 15px;
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.submenu-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  font-weight: 500;
}

.submenu-col a:hover {
  color: var(--primary);
  padding-left: 12px;
  background: rgba(26,74,46,0.02);
}
.sub-menu {
  position: absolute;
  top: 80px; /* ヘッダーの高さ */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(26,74,46,0.1);
  border-top: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  padding: 48px 32px;
  pointer-events: none;
  
  /* Flex layout */
  max-width: 1200px;
  margin: 0 auto;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.menu-item-has-children:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.global-nav > ul > li > ul.sub-menu > li {
  flex: 1;
  min-width: 200px;
}

.global-nav > ul > li > ul.sub-menu > li > a {
  display: block;
  font-size: 15px;
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.global-nav > ul > li > ul.sub-menu > li > a:hover {
  color: var(--primary);
  padding-left: 0;
  background: transparent;
}

.global-nav ul.sub-menu ul.sub-menu {
  position: static;
  box-shadow: none;
  background: transparent;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  display: block;
  border: none;
  max-width: none;
  margin: 0;
}

.global-nav ul.sub-menu ul.sub-menu a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  font-weight: 500;
}

.global-nav ul.sub-menu ul.sub-menu a:hover {
  color: var(--primary);
  padding-left: 12px;
  background: rgba(26,74,46,0.02);
}

