/* ページ内リンクで固定したheaderを戻す */
html {
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* header固定 */
header {
  background: #498f4d;
  color: #fff;
  position: fixed;
  top: 0; 
  left: 0;
  width:100%;
  z-index: 99;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 15px;
  display: block;
}

/* headerロゴ */
.site-title img {
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin: 0 auto;
}
 
/* ナビゲーション */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  font-size: 13px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* メインビジュアル */
.hero {
  background: linear-gradient(to right, #bfe6ff, #e6fff5);
  border-bottom: 1px solid #ddd;
  margin-top: 60px; 
}

.hero-inner{
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 
.hero-text {
  font-size: 18px;
  font-weight: bold;
  color: #006030;
}

.hero-sub {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

.hero-visual span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 12px;
}*/

.layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  display: flex;
  gap: 20px;
}

main {
  flex: 1;
}

aside {
  width: 260px;
}

.box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 15px;
  margin-bottom: 20px;
}

h2 {
  font-size: 20px;
  margin: 20px 0;
  border-bottom: 2px solid #008040;
  padding-left: 10px;
}

h3 {
  font-size: 16px;
  margin: 20px 0;
  border-left: 5px solid #008040;
  padding-left: 10px;
}

strong {
  display:block;
  margin: 1rem;
}

.aside-banner {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 13px;
  text-align: center;
}

.aside-banner-title {
  font-weight: bold;
}

/* トップページ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.news-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
}

.news-date {
  display: inline-block;
  width: 90px;
  color: #666;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.section-links a {
  padding: 6px 10px;
  background: #f0f8f4;
  border-radius: 3px;
  border: 1px solid #cde3d6;
  text-decoration: none;
  color: #006030;
}

.section-links a:hover {
  background: #e0f2ea;
}

/* 
.aside-banner--green  { border-color: #009944; background: #e9f8ef; } 
.aside-banner--lightgreen { border-color: #66bb6a; background: #f3faf5; } 
.aside-banner--gray   { border-color: #666; background: #f8f8f8; } 
*/

.aside-banner--green { border-color: #009944; background: #e9f8ef; }
.aside-banner--yellow { border-color: #e6b800; background: #fff7df; }
.aside-banner--blue { border-color: #0072bc; background: #e7f3ff; }
.aside-banner--pink { border-color: #d85a9e; background: #ffeaf4;}
.aside-banner--gray { border-color: #666; background: #f2f2f2; }
.aside-banner--orange { border-color: #ff8a3d; background: #fff1e6; } 
.aside-banner--lavender { border-color: #8f7bdc; background: #f3efff;} 

footer {
  border-top: 1px solid #ddd;
  background: #498f4d;
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
/*  display: flex;
  align-items: center;
  justify-content: space-between;*/
  text-align:center;
}

/* 3本線の位置 */
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 9px;
}
.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* スマホ表示でハンバーガーを出す */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  nav.nav-menu {
    display: none;
  }

  nav.nav-menu.active {
    display: block;
  }
}
  

/* スマホでは非表示にしてハンバーガーを表示 */
.hamburger {
	display:none;
	  width: 30px;
  height: 22px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 9999;
  margin-left: auto;

}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    margin-bottom: 5px;
  }
  
  nav ul {
    display:block;
	text-align:center;
  }

  nav.nav-menu {
    display: none;
  }

  nav.nav-menu.active {
    display: block;
  }

  .header-inner,
  .hero-inner,
  .layout {
    flex-direction: column;
    align-items: flex-start;
  }

  aside {
    width: 100%;
  }

  main {
	  width: 100%;
  }
}
