@charset "utf-8";

.wrap {
  padding-bottom: 120px;
}

.contents__category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 50px 0 40px;
  margin: 0;

  a {
    border: solid 1px #154ec3;
    border-radius: calc(1px * infinity);
    color: #154ec3;
    font-weight: 700;
    line-height: 1;
    display: block;
    padding: 15px 26px;
  }

  .current {
    background-color: #154ec3;
    color: #fff;
    pointer-events: none;
  }
}

.contents__articles {
  border-top: solid 1px #ccc;

  a {
    display: block;
    position: relative;
  }

  a::after {
    content: '';
    background: url(../img/icon-arrow.svg) no-repeat center / contain;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto;
    width: 28px;
    height: 28px;
  }

  .pdf::after {
    content: '';
    background: url(../img/icon-pdf.svg) no-repeat center / contain;
    width: 26px;
    height: 32px;
  }
}

.contents__article {
  border-bottom: solid 1px #ccc;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 10px;
  padding: 22px 60px 22px 20px;

  .date {
    color: #212529;
    opacity: 0.5;
  }

  .category {
    background-color: #E8EEF9;
    border-radius: calc(1px * infinity);
    color: #154ec3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 15px;
    width: max-content;
  }
}

.contents__article_title {
  color: #212529;
  font-size: 16px;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0;
  grid-column: 1 / 3;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.c-pager {
  margin-top: 40px;
}

.pager_list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager_item {
  a,
  span,
  div {
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
  }
  .current {
    background-color: #154ec3;
    color: #fff;
  }

  .pre,
  .next {
    position: relative;  
  }

  .pre::after,
  .next::after {
    content: '';
    border-top: solid 1px #154ec3;
    border-right: solid 1px #154ec3;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
  }

  .pre::after {
    transform: scale(-1 , 1) rotate(45deg);
  }
}

@media screen and (min-width: 769px) {
  .contents__article_title {
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media screen and (max-width: 768px) {
  .contents__category {
    padding: 40px 0;
    a {
      font-size: 14px;
      padding: 9px 20px;
    }
  }

  .contents__articles {
    a::after {
      right: 10px;
      width: 25px;
      height: 25px;
    }
    .pdf::after {
      width: 22px;
      height: 28px;
    }
  }

  .contents__article {
    padding: 20px 40px 20px 10px;
    .date {
      font-size: 12px;
    }
  }

  .contents__article_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pager_list {
    gap: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .contents__category a:hover {
    background-color: #E8EEF9;
    text-decoration: none;
  }
  
  .contents__articles a:hover {
    background-color: #F3F6FC;
    text-decoration: none;
  }
  
  .pager_item a:hover {
    background-color: #F3F6FC;
    text-decoration: none;
  }
}


/**
 * 詳細
 */
.article__detail {
  max-width: 800px;
  width: 100%;
  margin: 50px auto 0;
}

.article__top {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  .date {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.5;
    width: auto;
  }
  .category {
    background-color: #E8EEF9;
    border-radius: calc(1px * infinity);
    color: #154ec3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 15px;
    width: max-content;
  }
}

.article__title {
  border-bottom: solid 1px #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

.article__btn {
  margin-top: 40px;
  a {
    border: solid 1px #154ec3;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    display: block;
    padding: 20px;
    position: relative;
  }
  a::after {
    content: '';
    border-top: solid 1px #154ec3;
    border-right: solid 1px #154ec3;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto;
    width: 8px;
    height: 8px;
  }
}

@media screen and (max-width: 768px) {
  .article__top {
    gap: 10px;
    margin-bottom: 15px;
  }

  .article__title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .article__btn a:hover {
    text-decoration: none;
    background-color: #154ec3;
    color: #fff;
  }
  .article__btn a:hover::after {
    border-color: #fff;
  }
}