/*
 * @site-assets-manager-description: サイドカラム専用の広告、ウィジェット、最近の記事の見た目調整
 * @site-assets-manager-public: true
 * @site-assets-manager-priority: 18
 * @site-assets-manager-scope: all
 * @site-assets-manager-updated-by: rest
 */

/* 01. Sidebar base */
html body .l-sidebar.spi-sidebar,
html body .l-sidebar {
  box-sizing: border-box;
}

html body .l-sidebar .widget {
  margin-bottom: 28px;
}

html body .l-sidebar .heading.heading-widget {
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}

/* 02. Sidebar promo buttons */
html body .l-sidebar .spi-sidebar-promo {
  width: 100%;
  margin: 0 0 24px;
}

html body .l-sidebar .spi-sidebar-pr {
  margin: 0 0 6px;
  color: #222;
  font-size: 13px;
  line-height: 1.4;
}

html body .l-sidebar .spi-sidebar-ad {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  aspect-ratio: 9 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f3ec;
  text-decoration: none;
}

html body .l-sidebar .spi-sidebar-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 03. Sidebar article lists */
html body .l-sidebar .imgListWidget {
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .l-sidebar .rankListWidget {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: number;
}

html body .l-sidebar .imgListWidget__item,
html body .l-sidebar .rankListWidget__item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  column-gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 58px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  line-height: 1.5;
}

html body .l-sidebar .rankListWidget__item:first-child {
  padding-top: 0 !important;
}

html body .l-sidebar .imgListWidget__item::after,
html body .l-sidebar .rankListWidget__item::after {
  content: none !important;
  display: none !important;
  clear: none !important;
}

html body .l-sidebar .rankListWidget__item::before {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 3 !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  font-size: 12px !important;
}

html body .l-sidebar .imgListWidget__borderBox,
html body .l-sidebar .rankListWidget__item .eyecatch.eyecatch-widget {
  float: none !important;
  display: block !important;
  grid-column: 1 !important;
  width: 96px !important;
  height: 58px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f6f3ec;
  box-shadow: 0 1px 4px rgba(25, 32, 33, .12);
  transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
}

html body .l-sidebar .imgListWidget__borderBox span {
  display: block;
  width: 100%;
  height: 100%;
}

html body .l-sidebar .imgListWidget__borderBox::before,
html body .l-sidebar .imgListWidget__borderBox::after,
html body .l-sidebar .imgListWidget__borderBox > span::before,
html body .l-sidebar .imgListWidget__borderBox > span::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

html body .l-sidebar .rankListWidget__item .eyecatch.eyecatch-widget::before {
  content: none !important;
  display: none !important;
}

html body .l-sidebar .imgListWidget__borderBox img,
html body .l-sidebar .rankListWidget__item .eyecatch.eyecatch-widget img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  transform: none !important;
  transition: filter .18s ease, transform .18s ease !important;
}

html body .l-sidebar .imgListWidget__item:hover .imgListWidget__borderBox,
html body .l-sidebar .rankListWidget__item:hover .eyecatch.eyecatch-widget {
  box-shadow: 0 5px 14px rgba(25, 32, 33, .18);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

html body .l-sidebar .imgListWidget__title,
html body .l-sidebar .rankListWidget__title {
  float: none !important;
  display: block !important;
  grid-column: 2 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html body .l-sidebar .imgListWidget__title a,
html body .l-sidebar .rankListWidget__title a {
  color: #202c30;
  text-decoration: none;
}

html body .l-sidebar .imgListWidget__title a:hover,
html body .l-sidebar .rankListWidget__title a:hover {
  color: #9a7236;
}

html body .l-sidebar .rankListWidget .dateList {
  display: none !important;
}

@media (max-width: 768px) {
  html body .l-sidebar .widget {
    margin-bottom: 24px;
  }

  html body .l-sidebar .imgListWidget__item,
  html body .l-sidebar .rankListWidget__item {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    min-height: 56px !important;
    margin-bottom: 12px !important;
  }

  html body .l-sidebar .imgListWidget__borderBox,
  html body .l-sidebar .rankListWidget__item .eyecatch.eyecatch-widget {
    width: 92px !important;
    height: 56px !important;
  }
}
