/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Climate Tech Theme */
    --primary-color: #059669;
    --secondary-color: #1e3a5f;
    --accent-color: #10b981;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a5f 0%, #0f1f35 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.8) 0%, rgba(16, 185, 129, 0.9) 100%);
    mix-blend-mode: multiply;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 0.5rem auto 0;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.main-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Article Content */
.article-content {
  padding: 40px;
}

.article-content h2 {
  font-size: 1.8rem;
  color: #1e3c72;
  margin: 40px 0 20px 0;
  font-weight: 700;
  border-left: 4px solid #4CAF50;
  padding-left: 16px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.4rem;
  color: #2a5298;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.article-content h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 25px 0 12px 0;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: #444;
}

.article-content ul, .article-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Homepage Specific Styles */
.site-overview {
  padding: 40px;
}

.key-sectors {
  margin-top: 30px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sector-card {
  background: #f8fafb;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.sector-card h4 {
  margin-bottom: 12px;
}

.sector-card h4 a {
  color: #1e3c72;
  text-decoration: none;
}

.sector-card h4 a:hover {
  color: #4CAF50;
}

.ai-transformation {
  padding: 40px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f2f7 100%);
}

.cta-link {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

.cta-link:hover {
  color: #2a5298;
}

.latest-news {
  padding: 40px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.news-item {
  padding: 20px;
  background: #f8fafb;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.news-item time {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-item h3 {
  margin: 8px 0 10px 0;
  color: #1e3c72;
  font-size: 1.1rem;
}

.page-navigation {
  padding: 40px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.nav-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 3px solid #4CAF50;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.nav-card h3 {
  color: #1e3c72;
  margin-bottom: 10px;
}

/* Market Analysis Specific Styles */
.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-box {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.stat-box h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.big-number {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
}

.regional-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.region-card {
  background: #f8fafb;
  padding: 25px;
  border-radius: 8px;
  border-top: 4px solid #1e3c72;
}

.region-card h4 {
  color: #1e3c72;
  margin-bottom: 10px;
}

.investment-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4CAF50;
  display: block;
  margin-bottom: 15px;
}

.tech-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tech-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #4CAF50;
}

.tech-card h4 {
  margin-bottom: 10px;
  color: #1e3c72;
}

.growth-rate {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4CAF50;
  display: block;
  margin-bottom: 15px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-section h3 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

.sidebar-nav a:hover {
  color: #4CAF50;
}

.related-sites {
  list-style: none;
}

.related-sites li {
  margin-bottom: 8px;
}

.related-sites a {
  color: #1e3c72;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  display: block;
}

.related-sites a:hover {
  color: #4CAF50;
}

.ad-section {
  background: #f8fafb;
  border: 2px dashed #ddd;
}

.ad-placeholder {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px 20px;
}

/* Related Articles */
.related-articles {
  padding: 40px;
  background: #f8fafb;
  margin-top: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #4CAF50;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.related-card h3 {
  color: #1e3c72;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.related-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
.main-footer {
  background: #1e3c72;
  color: white;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: white;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #4CAF50;
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section ul a:hover {
  opacity: 1;
  color: #4CAF50;
}

.footer-bottom {
  background: #152a5c;
  text-align: center;
  padding: 20px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-links a:hover {
  opacity: 1;
  color: #4CAF50;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #1e3c72;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 20px;
  }

  .nav-menu a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-content {
    padding: 25px;
  }

  .site-overview {
    padding: 25px;
  }

  .ai-transformation {
    padding: 25px;
  }

  .latest-news {
    padding: 25px;
  }

  .page-navigation {
    padding: 25px;
  }

  .related-articles {
    padding: 25px;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .market-stats {
    grid-template-columns: 1fr;
  }

  .regional-breakdown {
    grid-template-columns: 1fr;
  }

  .tech-sectors {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 20px;
  }

  .footer-links {
    gap: 1rem;
    flex-direction: column;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .article-content {
    padding: 20px;
  }

  .sidebar-section {
    padding: 20px;
  }
}

/* Additional Responsive Rules for new structure */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 80vh;
        padding-top: 70px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.25rem;
    }
}