/* Reset */
html {
  box-sizing: border-box;
  font-size: 62.5%;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #32cd32;
  background-image: 
    radial-gradient(rgba(255,255,255,0.4) 15%, transparent 16%), 
    radial-gradient(rgba(255,255,255,0.4) 15%, transparent 16%);
  background-size: 110px 110px; 
  background-position: 0 0, 55px 55px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Smooth Transitions */
a, button, input {
  transition: 0.3s ease all;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0,100,0,0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  padding: 0.5rem 0; /* 余白を減らし、ヘッダーをコンパクトに */
}

.header__inner {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem; /* 余白を少なめに */
}

.header__title {
  font-size: 2.0rem; /* タイトルもやや小さめでスマートに */
  font-weight: 700;
  color: #fff;
}

.header__title a {
  text-decoration: none;
  color: inherit;
}

/* Hamburger Menu */
.hamburger-menu {
  position: static;
}

.menu-btn {
  display: flex;
  position: relative;
  height: 45px;
  width: 45px;
  background: rgba(236,0,140,0.7);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.menu-btn:hover {
  transform: scale(1.05);
}

.menu-btn span, 
.menu-btn span:before, 
.menu-btn span:after {
  content: '';
  display: block;
  background-color: #ffe6f2;
  height: 3px;
  width: 20px;
  border-radius: 2px;
  position: absolute;
  transition: 0.4s ease all;
}

.menu-btn span:before {
  transform: translateY(-7px);
}
.menu-btn span:after {
  transform: translateY(7px);
}

#menu-btn-check {
  display: none;
}

#menu-btn-check:checked ~ .menu-btn span {
  background-color: transparent;
}
#menu-btn-check:checked ~ .menu-btn span:before {
  transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span:after {
  transform: rotate(-45deg);
}

/* Menu Content */
.menu-content {
  position: fixed;
  top:0;
  left: 100%;
  width: 70%;
  max-width: 300px;
  height: 100%;
  background: rgba(255,230,242,0.95);
  backdrop-filter: blur(10px);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: 0.5s ease;
  z-index: 80;
  padding-top: 6rem; /* 上部余白もやや縮小 */
}

#menu-btn-check:checked ~ .menu-content {
  left: 30%;
}

.menu-content ul {
  list-style: none;
  padding: 0 2rem;
}

.menu-content ul li {
  margin-bottom: 1rem; /* 余白を少なめに */
  border-bottom: 1px solid #EC008C;
  padding-bottom: 0.5rem;
}

.menu-content ul li a {
  text-decoration: none;
  font-size: 1.6rem;
  color: #EC008C;
  position: relative;
  padding: 0.5rem 0;
}
.menu-content ul li a:hover {
  color: #006400;
}

/* Main */
.main {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2rem auto; /* 全体の余白を少なめに */
  padding: 1rem;
  gap: 1.5rem; /* ギャップを減らしてタイトに */
}

/* 最新記事 */
.latest-article {
  flex-basis: 100%;
  background: rgba(255,230,242,0.8);
  backdrop-filter: blur(5px);
  border: 2px solid #EC008C;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: #EC008C;
  margin-bottom: 2rem;
}
.latest-article p {
  font-size: 1.2rem;
  color: #333;
  margin-top: 0.5rem;
}

/* Article */
.article {
  flex-basis: calc(70% - 1.5rem);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article__header {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.article__title {
  font-size: 2.0rem;
  font-weight: 700;
  color: #006400;
  margin-bottom: 0.5rem;
}
.article__title a {
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid transparent;
}
.article__title a:hover {
  border-bottom: 2px solid #EC008C;
}

.article__category {
  display: flex;
  gap: 0.5rem;
}
.article__category-item {
  font-size: 1.2rem;
  color: #ddd;
  background: #006400;
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
}

/* Sidebar */
.sidebar {
  flex-basis: calc(30% - 1.5rem);
  padding: 1.5rem;
  border-radius: 15px;
  background: rgba(0,100,0,0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar__title {
  font-size: 2.0rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #006400;
  border-bottom: 2px solid #006400;
  padding-bottom: 0.5rem;
}

.sidebar__list {
  list-style: none;
}

.sidebar__item {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.sidebar__item a {
  text-decoration: none;
  color: #333;
}
.sidebar__item a:hover {
  color: #EC008C;
}

/* Banner Ad */
.banner-ad {
  text-align: center;
  margin: 1.5rem 0;
}
.banner-ad a {
  display: inline-block;
  transition: transform 0.3s ease;
}
.banner-ad a:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: rgba(0,100,0,0.8);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
}
.footer p {
  font-size: 1.2rem;
  color: #4A412A;
}

/* Fade-in animations */
.main, .sidebar, .latest-article, .footer, .article {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.7s ease forwards;
}

.main {
  animation-delay: 0.1s;
}
.sidebar {
  animation-delay: 0.2s;
}
.latest-article {
  animation-delay: 0.3s;
}
.article {
  animation-delay: 0.4s;
}
.footer {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .main {
    flex-direction: column;
  }
  .article, .sidebar {
    flex-basis: 100%;
  }
  .menu-content {
    width: 100%;
    left: 100%;
  }
  #menu-btn-check:checked ~ .menu-content {
    left: 0;
  }
  .header__inner {
    padding: 0.5rem;
  }
}