/* サイドバー */

.sidebar {
  background: #fff;
  padding: 1rem;
  min-width: 300px;
  max-width: 300px;
  width: 100%;
  position: sticky;
  top: 100px;
}
@media screen and (max-width: 768px) {
  .sidebar {
    max-width: 100%;
  }
}
.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.sidebar-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0f7e40;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eeeeee;
  padding: 20px 0;
  width: 100%;
  display: block;
}

/* 最初の li のリンクだけボーダー消す */
.sidebar-widget ul li:first-child a {
  padding-top: 5px;
}

/* 最後の li のリンクだけボーダー消す */
.sidebar-widget ul li:last-child a {
  border-bottom: none;
}

.sidebar-widget ul li a:hover {
  color: #0f7e40;
}

.sidebar-widget.banner_wrap {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-widget.banner_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-widget.banner_wrap a {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}
.sidebar-widget.banner_wrap a:hover {
  opacity: 0.7;
}
