#archive-title {
  /* background-color: var(--white); */
  border-bottom: solid 1px var(--border-black);
}

.archive-title__wrap {
  padding: 4.8rem 12rem;
}

.archive-title__heading {
  text-align: center;
  > span {
    font-family: var(--font-en);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 1.8rem;
  }

  h1 {
    font-size: 4rem;
    letter-spacing: 0.1em;

    > i {
      font-size: 4.8rem;
      margin-left: 0.8rem;
      line-height: 1;
    }
  }
}

.archive-title__count {
  font-family: var(--font-en);
  display: block;
  text-align: center;
  font-size: 1.4rem;
}

.archive-title__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 2.4rem;
  margin-top: 1.6rem;

  .archive-title__filters__content {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 4rem;
    padding: 0.8rem 2.4rem;
    border-top: dashed 1px var(--border-gray);
    border-bottom: dashed 1px var(--border-gray);

    > span {
      font-family: var(--font-en);
      color: var(--theme-blue);
      font-weight: 600;
    }

    .filter-list--category,
    .filter-list--tag {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      font-size: 1.2rem;

      > li {
        display: flex;
        column-gap: 0.8rem;

        &::after {
          content: "/";
          color: var(--text-gray);
        }

        &:last-of-type::after {
          display: none;
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .archive-title__wrap {
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  .archive-title__heading {
    h1 {
      font-size: 3.2rem;

      > i {
        font-size: 4rem;
      }
    }
  }
}

/* ------------------

 地域情報一覧 

 ------------------ */

.archive-articles__inner {
  display: flex;
  flex-direction: row-reverse;
}

.archive-articles__sidebar {
  width: 36rem;
  border-left: solid 1px var(--border-black);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.archive-articles__sidebar__inner {
  width: 100%;
  position: sticky;
  bottom: 0;

  h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.1em;
    padding: 1.6rem;
    border-bottom: solid 1px var(--border-black);

    > i {
      font-size: 3.2rem;
      margin-right: 0.8rem;
    }
  }
}

/* 地域情報一覧のサイドバー ここから */

.archive-sidebar__category {
}

.archive-sidebar__category__list {
  padding: 0 2.4rem;

  > li {
    border-bottom: dashed 1px var(--border-gray);
    padding: 1.6rem 0;

    > a {
      display: block;
      text-align: center;
      padding: 0 1.6rem;
      margin-bottom: 0.8rem;
      color: var(--theme-blue);
      font-weight: 600;
    }
  }
}

.archive-sidebar__category__list--child {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;

  > li {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    font-size: 1.2rem;

    &::after {
      content: "/";
      color: var(--text-gray);
    }

    &:last-of-type::after {
      display: none;
    }

    > a {
      display: inline-block;
      text-align: center;
      color: var(--text-black);
      text-decoration: underline;
    }
  }
}

.archive-sidebar__search {
  padding: 2.4rem;
}

/* 地域情報のサイドバー ここまで */

/* 各ライター記事一覧のサイドバー ここから */
.archive-sidebar__profile {
  padding: 2.4rem 4.8rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.archive-sidebar__profile__img {
  width: 12rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 1.6rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.archive-sidebar__profile__job {
  font-size: 1rem;
}

.archive-sidebar__profile__name {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.archive-sidebar__profile__sns__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  margin-bottom: 1.6rem;

  .archive-sidebar__profile__sns__item {
    font-size: 1.2rem;
    > a {
      display: inline-block;
      height: 2rem;
      img {
        max-height: 100%;
      }
    }
  }
}

.archive-sidebar__profile__website {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.archive-sidebar__profile__description {
  font-size: 1.2rem;
}
/* 各ライター記事一覧のサイドバー ここまで */

@media screen and (max-width: 768px) {
  .archive-articles__inner {
    flex-direction: column;
  }

  .archive-articles__sidebar {
    width: 100%;
    border-left: none;
    border-bottom: solid 1px var(--border-black);
  }

  .archive-articles__sidebar__inner {
    position: static;
  }

  .archive-sidebar__category {
    
  }
  .archive-sidebar__category__list {
    overflow-x: auto;
    display: flex;
    column-gap: 2.4rem;
    padding-bottom: 1.6rem;

    > li {
      min-width: 70vw;
    }
  }

  .archive-sidebar__search {
    display: none;
  }
}

.archive-articles__main {
  flex: 1;
  /* display: flex;
  align-items: flex-start; */
}

.archive-articles__main__inner {
  /* position: sticky;
  top: 0; */
  display: flex;
  height: 100%;
}

.archive-articles__not-item {
  width: 100%;
  text-align: center;
  padding: 4.8rem 2.4rem;

  p {
    margin: 0;
  }

  i {
    font-size: 4rem;
  }
}

.archive-articles__list {
  display: flex;
  flex-wrap: wrap;
  min-width: 100%;
}

.archive-articles__inner + .pagination,
.archive-articles__list + .pagination {
  border-top: solid 1px var(--border-black);
}

.archive-articles__item {
  padding: 3.2rem 2.4rem;
  width: calc(100% / 3);
  border-right: solid 1px var(--border-black);
  border-bottom: solid 1px var(--border-black);
  cursor: pointer;
  transition: background-color 0.4s ease-out;
  height: auto;

  &:nth-of-type(3n) {
    border-right: none;
  }

  &.is-last-row {
    border-bottom: none;
  }
}

.archive-articles__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  column-gap: 1.6rem;

  .archive-articles__info__area {
    display: flex;
    align-items: center;
    column-gap: 0.4rem;
    font-size: 1.2rem;

    > span:first-of-type {
      display: inline-block;
      min-width: fit-content;
    }
  }

  time {
    font-size: 1.4rem;
    font-family: var(--font-en);
    color: var(--text-gray);
  }
}

.archive-articles__thumbnail {
  aspect-ratio: 400 / 266;
  margin-bottom: 1.6rem;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
  }
}

.archive-articles__title {
  font-size: 1.8rem;
  margin-bottom: 1.6rem;

  span {
    padding-bottom: 0.2rem;
    background-image: linear-gradient(
      to bottom,
      transparent,
      var(--border-black)
    );
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 0.2rem;
    transition: background 0.4s ease-out;
  }
}

.archive-articles__profile {
  display: flex;
  align-items: center;
  column-gap: 1.6rem;
  width: fit-content;
  margin-bottom: 1.6rem;
  color: var(--text-black);

  .archive-articles__profile__img {
    position: relative;
    width: 6rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      display: inline-block;
      width: 100%;
      height: 100%;
      border: solid 1px var(--theme-blue);
      z-index: -1;
      border-radius: 50%;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      transition: transform 0.4s ease;
    }
  }

  .archive-articles__profile__name {
    font-size: 1.4rem;
    text-decoration: underline;
    transition: color 0.4s ease;
  }
}

.archive-articles__tag__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;

  .archive-articles__tag__item > a {
    display: flex;
    align-items: center;
    column-gap: 0.2rem;
    font-size: 1.2rem;
    color: var(--text-black);
    padding: 0.2rem 1.2rem;
    border: solid 1px var(--border-black);
    border-radius: 4rem;
    transition: background-color 0.4s ease-out;
    background-color: var(--white);

    &::before {
      content: "#";
      color: var(--text-gray);
      font-size: 1.4rem;
      line-height: 1;
    }
  }

  .archive-articles__tag__item.is-current > a {
    background-color: var(--text-gray);
    color: var(--white);
    border: none;
    pointer-events: none;

    &::before {
      content: "";
      display: inline-block;
      width: 1rem;
      height: 0.6rem;
      border-bottom: solid 2px var(--white);
      border-left: solid 2px var(--white);
      transform: rotate(-45deg) translate(-0.2rem, -0.4rem);
      color: var(--white);
    }
  }
}

@media (any-hover: hover) {
  .archive-articles__item:hover {
    background-color: var(--theme-gray);
    .archive-articles__title {
      span {
        background-size: 100% 0.2rem;
      }
    }
    .archive-articles__thumbnail {
      img {
        transform: scale(1.1);
      }
    }
  }

  .archive-articles__profile:hover {
    .archive-articles__profile__name {
      color: var(--theme-blue);
    }
    .archive-articles__profile__img {
      img {
        transform: scale(0.9);
      }
    }
  }

  .archive-articles__tag__list {
    .archive-articles__tag__item > a:hover {
      color: var(--white);
      background-color: var(--text-black);

      &::before {
        color: var(--white);
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .archive-articles__item {
    width: calc(100% / 2);

    &:nth-of-type(3n) {
      border-right: solid 1px var(--border-black);
    }

    &:nth-of-type(2n) {
      border-right: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .archive-articles__item {
    width: 100%;
    border-right: none;
    border-bottom: dashed 1px var(--border-black);

    &:nth-of-type(3n) {
      border-right: none;
    }
  }
}

/* ------------------

 ユーザー記事一覧

 ------------------ */

#author-title {
  /* background-color: var(--white); */
  border-bottom: solid 1px var(--border-black);
}

.author-title__wrap {
  padding: 4.8rem 12rem;
}

.author-title__heading {
  text-align: center;

  > span {
    font-family: var(--font-en);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 1.8rem;
  }

  h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.8rem;
    font-size: 2.4rem;

    .author-title__name {
      font-size: 4rem;
      letter-spacing: 0.1em;

      &::before,
      &::after {
        content: "”";
        color: var(--theme-blue);
      }
    }
  }
}

.author-title__count {
  font-family: var(--font-en);
  display: block;
  text-align: center;
  font-size: 1.4rem;
}

@media (any-hover: hover) {
}

@media screen and (max-width: 1024px) {
  .author-title__wrap {
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  .author-title__heading {
    h1 {
      font-size: 1.6rem;
      .author-title__name {
        font-size: 3.2rem;
      }
    }
  }
}

/* ------------------

 検索結果一覧

 ------------------ */
#search-title {
  /* background-color: var(--white); */
  border-bottom: solid 1px var(--border-black);
}

.search-title__wrap {
  padding: 4.8rem 12rem;
}

.search-title__heading {
  text-align: center;

  > span {
    font-family: var(--font-en);
    color: var(--text-gray);
    font-weight: 700;
    font-size: 1.8rem;
  }

  h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.8rem;
    font-size: 2.4rem;

    .search-title__name {
      font-size: 4rem;
      letter-spacing: 0.1em;

      &::before,
      &::after {
        content: "”";
        color: var(--theme-blue);
      }
    }
  }
}

.search-title__count {
  font-family: var(--font-en);
  display: block;
  text-align: center;
  font-size: 1.4rem;
}

@media (any-hover: hover) {
}

@media screen and (max-width: 1024px) {
  .search-title__wrap {
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  .search-title__heading {
    h1 {
      font-size: 1.6rem;
      .search-title__name {
        font-size: 3.2rem;
      }
    }
  }
}
