
:root {
  --primary-color: #8B5A2B;
  --secondary-color: #2E8B57;
  --bg-color: #FDFBF7;
  --text-dark: #2F4F4F;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

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

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.8;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Nav Menu 2-line layout */
.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);
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-link {
  padding: 1rem 5%;
  border-bottom: 1px solid #eee;
  display: block;
}

/* Hero Section */
.hero {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  -webkit-text-stroke: 1px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5%;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.content-area {
  flex: 1;
  min-width: 60%;
}

.sidebar {
  flex: 0 0 300px;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-content {
    flex-direction: column;
  }
  .sidebar {
    flex: auto;
    width: 100%;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* News List */
.news-section {
  background-color: #f5f5f5;
  padding: 40px 5%;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.news-item {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-color);
}

.news-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: block;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
}

/* Typography & Content Elements */
h1, h2, h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

/* Sidebar Elements */
.sidebar-widget {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.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;
}

.toc-list a:hover, .related-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Ads */
.ad-space {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin: 1.5rem 0;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 5% 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: #fff;
}
