@charset "utf-8";

/* サイドバー */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  margin-left: 40px;
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 60px;
  left: 0;
  right: 0;
  padding-bottom: 30px;
}

.sidebar-inner h3 {
  display: block;
  width: 220px;
  height: 30px;
  font-size: 16px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
  background-color: #0014ac;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235661b5' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.sidebar-search {
  height: 40px;
  text-align: center;
  padding-top: 15px;
}

.sidebar-title {
  height: 28px;
  line-height: 28px;
  margin-top: 20px;
  margin-bottom: 15px;
  padding-left: 8px;
  border-bottom: 1px solid #0014ac;
  border-left: 5px solid #0014ac;
}

.sidebar-recent-item {
  margin-bottom: 15px;
}

.sidebar-recent-item img {
  border-radius: 10px;
}

.sidebar-recent-item p {
  font-size: 13px;
  text-align: center;
  margin-bottom: 5px;
}

.sidebar-category-list {
  line-height: 1.5;
  list-style-type: disc;
  padding-left: 20px;
}


@media (max-width: 768px) {

  .sidebar {
    width: 300px;
    margin: 0 auto;
  }

  .sidebar-inner h3 {
    width: 300px;
  }


}