
:root {
  --primary-color: #2e8b57;
  --secondary-color: #f0e68c;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #fafafa;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.8;
  font-size: 16px;
}

a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
a:hover { text-decoration: underline; opacity: 0.8; }

header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

.nav-item a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-item a:hover, .nav-item a.active {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dark);
}

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
  -webkit-text-stroke: 1px #000;
}

.hero-subtitle {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  -webkit-text-stroke: 0.5px #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-content { flex: 1 1 700px; }
.sidebar { flex: 0 0 300px; display: flex; flex-direction: column; gap: 2rem; }

.page-hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.content-block {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.content-block h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #2c3e50; }
.content-block h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.8rem; color: #34495e; }
.content-block p { margin-bottom: 1.2rem; }

.news-list { list-style: none; margin-bottom: 2rem; }
.news-item { border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.9rem; color: #7f8c8d; display: block; margin-bottom: 0.3rem; }
.news-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.5rem; }
.news-desc { font-size: 0.95rem; color: #555; }

.widget {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.widget-title {
  font-size: 1.2rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}
.toc-list, .related-links { list-style: none; }
.toc-list li, .related-links li { margin-bottom: 0.8rem; }
.toc-list a, .related-links a { color: #555; display: block; font-size: 0.95rem; }
.toc-list a:hover, .related-links a:hover { color: var(--primary-color); padding-left: 5px; }

footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #bdc3c7; }
.footer-links a:hover { color: #fff; }

.banner-container { margin: 1.5rem 0; text-align: center; }
.banner-container img { max-width: 100%; border-radius: 8px; }

@media (max-width: 768px) {
  header { flex-direction: row; justify-content: space-between; }
  .nav-container { display: flex; justify-content: flex-end; width: auto; }
  .nav-menu {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
    width: 100%; background: #fff; padding: 1rem 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .nav-menu.show { display: flex; }
  .hamburger { display: block; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .container { flex-direction: column; }
  .sidebar { width: 100%; flex: none; }
}
