@charset "utf-8";

/* 背景の個別設定 */
.page_title_wrap {
  background-image: url(../img/archive_fv.jpg);
}


/* 技術一覧 */
.archive_wrap {
  font-family: var(--NotoSarens);
  margin: 5.1rem 10rem 8rem;
  width: 108rem;
}

/* メイン画像 */

.archive_main_visual {
  position: relative;
}

.archive_top_img {
  width: 100%;
  height: 20rem;
}

.archive_project_wrap {
  color: #FFFFFF;
  position: absolute;
  bottom: 6rem;
  right: 44rem;
  text-align: center;
  font-weight: 600;
}

.archive_project_title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  width: 40.8rem;
  height: 4rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.archive_title_list {
  font-size: 1.8rem;
  height: 2.4rem;
}

.main_visual_btn {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  padding: 1.9rem 2.4rem;
  background-color: #00A64D;
  border-radius: 1rem;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
}

/* カテゴリー */
.archive_category {
  display: flex;
  flex-wrap: wrap;
  gap: 3.2rem;
  margin-bottom: 6rem;
}

.archive_category_link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19rem;
  padding: 1.9rem 2rem 2rem 2rem;
  /* overflow: hidden; */
  text-overflow: ellipsis;
  /* padding: 2rem auto; */
  border: 0.1rem solid #03A64D;
  font-size: 1.3rem;
  background-color: #00A64D;
  color: white;
}

.archive_category_link:hover {
  color: #03A64D;
  background-color: #ffffff;
  border: #03A64D solid 1px;
  transition: .5s;
}

.archive_category_link.selected {
  background-color: white;
  color: #03A64D;
}

.archive_category_link.ranking {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropdown_menu {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  height: fit-content;
  border: solid .2rem white;
}

.archive_category_link.ranking:hover .dropdown_menu {
  display: block;
}

.dropown_link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F1FBF3;
  aspect-ratio: 190/40;
  width: 100%;
  border-top: solid .2rem white;
  color: #03A64D;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1em;
}


/* ページ概要 */
.archive_info {
  display: flex;
  /* height: 4rem; */
  justify-content: space-between;
  margin-bottom: 4rem;
}

.archive_title {
  font-size: 2.6rem;
  height: 3.6rem;
  line-height: 3.3rem;
  color: #26A64D;
  padding-left: 1.7rem;
  border-left: 1rem solid #26A64D;
  height: auto;
}

/* 検索バー */
.site_search_wrap {
  width: 40rem;
  height: 4rem;
  border: 0.15rem solid #26A64D;
  display: flex;
}

.search_holder {
  width: 36rem;
  height: 4rem;
  padding: 1.2rem 2rem;
  font-size: 1.4rem;
}

.site_search_img {
  aspect-ratio: 1/1;
  height: 100%;
  padding: 0.742rem 0.692rem;
  background-color: #03A64D;
  cursor: pointer;
}

/* 記事 */
.archive_list_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
  align-items: flex-start;
  /* width: 108rem; */
}

.archive_list {
  width: 53rem;
  display: flex;
  gap: 2.5rem;
  padding: 2rem;
  border: 1px solid #707070;
  border-radius: 1rem;
}

.archive_list_wrap a {
  width: 53rem;
  margin-bottom: 2rem;
}

.ranking_list_wrap {
  counter-reset: rank;

  a {
    width: 100%;
    margin-bottom: 2rem;
    display: block;
  }


  .archive_list {
    width: 100%;
    padding: 0;
    counter-increment: rank;

  }

  .ranking_list_image {
    width: 21.5rem;
    height: 17rem;
    flex-shrink: 0;
  }

  .archive_list img {
    width: 100%;
    height: 100%;
  }

  .ranking_list_info {
    width: 100%;
    padding: 4rem;
  }

  .ranking_list_name {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .ranking_list_name::before {
    content: counter(rank) "位";
    background-color: #03A64D;
    color: #fff;
    font-size: 1.8rem;
    padding: 0.2em 0.6em;
    border-radius: 1.2rem;
    left: 0;
    top: 0;
    display: inline-block;
    margin-right: 2rem;
  }

  .ranking_list_description {
    font-size: 1.6rem;
  }
}

.archive_list img {
  width: 16.5rem;
  height: 13rem;
  border-radius: 1rem;
  object-fit: contain;
}

.archive_list_image {
  width: 16.5rem;
  height: 13rem;
  border-radius: 1rem;
  overflow: hidden;
}

.archive_list_text {
  width: 30rem;
}

.archive_list_name {
  width: 30rem;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0.5rem;
  /* margin-bottom: 2.5rem; */
  margin-bottom: 1.9rem;
  font-family: var(--Averia);
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive_list_description {
  width: 30rem;
  font-size: 1.6rem;
  line-height: calc(24/16);
  font-family: var(--WorkSans);
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ページネーション */
.page_nation {
  text-align: center;
  color: #03A64D;
  margin-bottom: 8rem;
}

.page-numbers {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.05rem solid #03A64D;
  padding: 0.4rem 1rem;
  border-radius: 50%;
  color: #03A64D;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8rem;
  margin-right: 1rem;
}

.page-numbers:last-child {
  margin-right: 0;
}

.dots {
  border: none;
  padding: 0.4rem 0;
}

.ranking_title {
  font-size: 2.4rem;
  margin-bottom: 3.6rem;
  display: flex;
  align-items: center;
  margin-top: 5.6rem;
}

.ranking_title::before {
  content: '';
  width: 2rem;
  height: 0.15rem;
  background-color: #C8C8C8;
  display: inline-block;
  margin-right: 1rem;
}

.archive_default_logo {
  object-fit: contain;
}

@media screen and (max-width: 699.98px) {
  /* ここからレスポンシブ */

  /* メイン画像 */

  .archive_top_img {
    height: 12rem;
  }

  .archive_project_wrap {
    right: 9rem;
    bottom: 1rem;
  }

  .archive_project_title {
    display: block;
    width: 18.6rem;
    height: 7rem;
    font-size: 2.6rem;
    margin-bottom: 0.9rem;
  }

  .archive_title_list {
    font-size: 1.4rem;
  }

  .main_visual_btn {
    visibility: collapse;
  }

  /* 技術一覧 */
  .archive_wrap {
    margin: 5rem 1rem 6rem;
    width: auto;
  }

  /* カテゴリー */
  .archive_category {
    flex-wrap: wrap;
    gap: 1.5rem;
    row-gap: 2rem;
  }

  .archive_category_link {
    width: 17rem;
    font-size: 1.1rem;
  }

  /* ページ概要 */
  .archive_info {
    flex-direction: column;
  }

  .archive_title {
    margin-bottom: 4rem;
  }

  /* 検索バー */
  .site_search_wrap {
    width: 34rem;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }

  .search_holder {
    width: 30rem;
  }

  /* 記事 */
  .archive_list_wrap {
    margin-bottom: 2rem;
  }

  .archive_list {
    width: 35.5rem;
    padding: 2rem 1.4rem;
    gap: 1.538rem;
  }

  .archive_list_image {
    width: 13.962rem;
    height: 11rem;
  }

  .archive_list img {
    width: 13.962rem;
  }

  .archive_list_text {
    width: 17.1rem;
  }

  .archive_list_name {
    width: 17.1rem;
    font-size: 1.8rem;
    margin-top: 0;
  }

  .archive_list_description {
    width: 17.1rem;
    font-size: 1.4rem;
  }


  .ranking_list_wrap {



    .archive_list {
      padding: 2rem;
    }

    .ranking_list_image {
      width: 13.9rem;
      height: 11rem;
      flex-shrink: 0;
    }


    .ranking_list_info {
      width: 100%;
      padding: 0;
    }

    .ranking_list_name {
      font-size: 1.8rem;
      margin-bottom: 1rem;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      width: 16.5rem;
    }

    .ranking_list_name::before {
      font-size: 1.4rem;
      border-radius: 0.9rem;
      left: 0;
      top: 0;
      display: block;
      margin-bottom: 1rem;
      width: fit-content;
    }

    .ranking_list_description {
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
  }

}