/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ベーススタイル */
:root {
  --primary-color: #2d5a27;
  --secondary-color: #4a7c59;
  --accent-color: #7fb069;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --background: #ffffff;
  --surface: #f8f9fa;
  --border: #e9ecef;
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --mobile-padding: 16px;
  --mobile-gap: 12px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 60px; /* トップバーの高さ分 */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

/* ボタン */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  min-height: 48px;
  gap: 8px;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-demo {
  background: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
}

.btn-demo:hover {
  background: transparent;
  color: var(--accent-color);
}

.btn-login {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout {
  background: var(--error);
  color: white;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.875rem;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px var(--mobile-padding) 60px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--mobile-gap);
  margin-bottom: 2rem;
}

.hero-actions .btn {
  width: 100%;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SDGsアイコン */
.sdg-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
}

.sdg-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.sdg-icon:nth-child(odd) {
  animation-delay: 0.5s;
}

.sdg-icon:nth-child(even) {
  animation-delay: 1s;
}

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

.sdg-icon:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* SDGsセクション */
.sdgs-section {
  padding: 4rem 0;
  background: var(--surface);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.sdgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.sdg-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sdg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ハイライトセクション */
.highlights {
  padding: 60px 0;
  background: var(--background);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mobile-gap);
  margin-bottom: 2rem;
}

.highlight-card {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: var(--mobile-padding);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.highlight-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.highlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 統計情報 */
.stats {
  background: var(--primary-color);
  color: white;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* フッター */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

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

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

.footer-section a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px);
}

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

/* ユーティリティクラス */
.hidden {
  display: none !important;
}

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

/* タブレット以上のスタイル */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-actions .btn {
    width: auto;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  .sdgs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* デスクトップスタイル */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sdgs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
