
/* サイドバー */
.news__aside {
  flex: 0 1 16rem;
  order: 2;
  position: sticky;
  top: 10rem;
}
.aside__h2 {
  font-size: var(--18);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.09rem;
  margin-bottom: 1.5rem;
}
.aside__h2:nth-of-type(2) {
  margin-top: 4rem;
}
.aside__h2.categories-h2 {
  margin-bottom: 1rem;
}

.news__categories-button {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  width: fit-content;
  font-family: var(--familyNotoSans);
  font-size: var(--13);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.0325rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all .3s;
}
.news__categories-button::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.3);
  width: 0.5rem;
  height: 0.0625rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all .3s;
}
.news__categories-button.is-active,
.yearSelect__link.is-active {
  color: rgba(255, 255, 255, 1.0);
}
.news__categories-button.is-active::before,
.yearSelect__link.is-active::before {
  background-color: rgba(255, 255, 255, 1.0);
}

/* 年選択 */
.faq__heading::after {
  content: '';
  background-color: rgba(255, 255, 255, 0.3);
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
}

/* 共通アコーディオン調整 */
.faq__heading {
  position: relative;
  padding-block: 1rem;
  display: block;
  width: 100%;
  border: none;
  border-radius: 6px;
  background-color: inherit;
  font-family: var(--familyNotoSans);
}

.faqList__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;

  p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--13);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.0325rem;
  }
}

/* 年アコーディオン */
@media(hover: hover) {
  .yearSelect__frame .faq__heading:hover .faqList__head::after {
    transform: translateY(-50%) rotate(180deg);
  }
}
.faqList__question {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  width: 100%;
  text-align: left;
}
.faqList__head {
  position: relative;
}
.faqList__head::after {
  content: "";
  background: url(../../images/news/icon-yearSelect.svg) no-repeat center center / contain;
  width: 0.625rem;
  height: 0.375rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .3s;
}
.js-accordItem.open .faqList__head::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq__answer {
  padding: 1.5rem 0 0 0;
}
.js-accordHeading {
  cursor: pointer;
}

.js-accordBody {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.yearSelect__list {
  width: 100%;
}
.yearSelect__link {
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--13);
  font-family: var(--familyNotoSans);
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  position: relative;
}
.yearSelect__link::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.3);
  width: 0.5rem;
  height: 0.0625rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (hover:hover) {
  a.yearSelect__link:hover,
  a.news__categories-button:hover {
    color: #fff;
  }
  a.yearSelect__link:hover::before,
  a.news__categories-button:hover::before {
    background-color: #fff;
  }
}
a.yearSelect__link:focus-visible,
a.news__categories-button:focus-visible {
  color: #fff;
}
a.yearSelect__link:focus-visible::before,
a.news__categories-button:focus-visible::before {
  background-color: #fff;
}

@media screen and (max-width: 1000px) {
  .archiveContents {
    display: block;
    padding-inline: 0;
  }
  .news__aside {
    position: static;
    top: auto;
    display: block;
    width: 100%;
    padding-right: var(--padding-side);
    padding-left: var(--padding-side);
  }
  .newsLists__contents {
    padding-right: var(--padding-side);
    padding-left: var(--padding-side);
    padding-bottom: var(--section-margin);
  }
  .aside__container {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 2rem 1.5rem;
  }
  .aside__categories {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0;
  }
  .news__categories-button {
    padding-right: 0;
  }
  .aside__h2.categories-h2 {
    margin-bottom: 0.5rem;
  }
  .aside__h2:nth-of-type(2) {
    margin-top: 2rem;
    margin-bottom: 0;
  }
}