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

:root {
  --primary-color: #2E7D32;
  --secondary-color: #66BB6A;
  --accent-color: #A5D6A7;
  --text-dark: #1B2B1B;
  --text-light: #4A5F4A;
  --bg-light: #F5FAF5;
  --bg-white: #FFFFFF;
  --border-color: #E0F2E0;
  --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.08);
  --shadow-md: 0 4px 16px rgba(46, 125, 50, 0.12);
  --shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  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.3;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1.25rem;
}

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

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

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 30px;
  height: 30px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 6px;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 6px;
}

.nav-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

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

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(1.1);
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.7), rgba(102, 187, 106, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: var(--bg-white);
}

.hero-title {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--bg-light);
}

/* Overview Section */
.overview-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-item {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-item time {
  color: var(--text-light);
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.news-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}

/* Topics Section */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.topic-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
  border: 1px solid var(--border-color);
}

.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-content {
  padding: 1.5rem;
}

.topic-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.topic-content p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

/* Market Data Section */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.data-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.data-card h3 {
  color: var(--primary-color);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.data-list {
  list-style: none;
  padding: 0;
}

.data-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.data-list li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.cta h2::after {
  display: none;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--bg-white);
  color: var(--primary-color);
  border-color: var(--bg-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn-secondary:hover {
  background: var(--bg-white);
  color: var(--primary-color);
}

/* Footer */
footer {
  background: linear-gradient(180deg, #1B2B1B 0%, #0F1A0F 100%);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--bg-white);
  opacity: 0.8;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Page Specific Styles */
.page-hero {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Two-Column Layout */
.page-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.toc-list,
.related-links {
  list-style: none;
  padding: 0;
}

.toc-list li,
.related-links li {
  margin-bottom: 0.5rem;
}

.toc-list a,
.related-links a {
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 0.5rem;
  display: block;
  border-radius: 6px;
  transition: var(--transition);
}

.toc-list a:hover,
.toc-list a:focus,
.related-links a:hover,
.related-links a:focus {
  background: var(--bg-white);
  color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-banner {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-banner a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.sidebar-banner a:hover {
  color: var(--secondary-color);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.page-hero h1 {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.page-hero .lead {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-section {
  padding: 3rem 0;
}

.content-section img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.content-section h2 {
  color: var(--primary-color);
  margin-top: 3rem;
}

.content-section h3 {
  color: var(--text-dark);
  margin-top: 2rem;
}

.content-section p {
  line-height: 1.8;
}

.related-pages {
  background: var(--bg-light);
  padding: 3rem 0;
}

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

.related-item {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}

.related-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.related-item h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  

  .content-area {
    order: 2;
  }

  .sidebar {
    order: 1;
    position: static;
  }

  .sidebar {
    order: -1;
    position: static;
    top: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 0;
  }
  
  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-list a {
    display: block;
    padding: 1rem 0;
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .topics-grid,
  .news-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  header,
  footer,
  .nav-toggle,
  .cta {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}