@charset "UTF-8";

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/
/*index: ニュース一覧レイアウト */
/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.news-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 60px;
}

.news-layout__main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

.news-layout__sidebar {
  width: 260px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  max-height: calc(100svh - 80px);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.news-layout__sidebar::-webkit-scrollbar {
  display: none;
}

@media only screen and (max-width: 960px) {
  .news-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0;
  }

  .news-layout__sidebar {
    width: 100%;
    margin-top: 56px;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/
/*index: ニュースアーカイブ（年月アコーディオン）*/
/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

@media only screen and (min-width: 961px) {
  .news-archive {
    padding-bottom: 40px;
  }
}

.news-archive__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color);
}

.news-archive__list {
  list-style: none;
}

.news-archive__item {
  border-bottom: 1px solid var(--border-color);
}

.news-archive__year-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  text-align: left;
  gap: 10px;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .news-archive__year-btn:hover {
    opacity: 0.6;
  }
}

.news-archive__toggle {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color);
  font-size: 16px;
  font-weight: 400;
  color: var(--color);
  letter-spacing: 0;
  line-height: 1;
}

.news-archive__year-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.news-archive__month-list {
  list-style: none;
  padding: 0 0 10px 30px;
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.3s ease;
  transition: max-height 0.3s ease;
}

.news-archive__item--open .news-archive__month-list {
  max-height: 800px;
}

.news-archive__month-item {
  margin-top: 6px;
}

.news-archive__month-item:first-child {
  margin-top: 0;
}

.news-archive__month-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 400;
  color: var(--color);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 5px 0;
  transition: all 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .news-archive__month-link:hover {
    opacity: 0.6;
  }
}

.news-archive__count {
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}
