@charset "UTF-8";

/* 記事パーツ
=========================== */
a.info-item {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.6em;
  text-decoration: none;
  color: #222;
  transition: 0.2s;
  position: relative;
}

a.info-item:not(:last-child) {
  border-bottom: 2px dotted #ddd;
}


a.info-item:hover {
  background: #f9f9f9;
  color: #222;
}

.info-date {
  width: 6.5em;
  flex-shrink: 0;
  font-weight: normal;
  letter-spacing: 1px;
  color: #999;
}

.info-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.new {
  font-size: 1.3rem;
  font-family: 'Montserrat';
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff4b00;
  text-decoration: none !important;
}

/* カテゴリボタン
=========================== */
.news-btns,
.top-news-btns {
  display: flex;
  gap: 2.0rem;
  margin: 4.0rem auto;
  max-width: 80.0rem;
}

.news-btns {
  justify-content: center;
}

.top-news-btns {
  justify-content: right;
}

button.category_btn,
span.info-category {
  display: inline-block;
  width: 10.0rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  padding-block: 0.3rem;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

button.category_btn {
  padding: 1.0rem 0;
  font-size: 2.0rem;
  width: 100%;
  max-width: 25.0rem;
}

button.category_btn:hover {
  opacity: 0.6;
}

button[data-category=All].active {
  background-color: #D9EAF6;
}

button[data-category=News].active {
  background-color: #F5EEA8;
}

[data-category=News] .info-category {
  background-color: #F5EEA8;
}

button[data-category=Topics].active {
  background-color: #BADFD1;
}

[data-category=Topics] .info-category {
  background-color: #BADFD1;
}

a .info-title {
  text-decoration: underline;
  font-weight: 400;
}

/* 記事一覧ページ
=========================== */
.newsPages .news-list {
  max-width: 1120px;
  max-height: 85vh;
  overflow-y: auto;
  margin: auto;
  border-top: solid 2px #208E66;
  border-bottom: solid 2px #208E66;
  padding: 0.5rem 1.0rem;
}

/* トップページの最新情報
=========================== */
.topPage {
  .news-btns {
    margin: 2.0rem 0;
    justify-content: flex-end;
    max-width: initial;
  }

  .category_btn {
    width: 10.0rem;
    font-size: 1.4rem;
    padding: 0.5rem;
  }

  .news-list {
    margin: auto;
    border-top: solid 2px #208E66;
    border-bottom: solid 2px #208E66;
    padding: 0.5rem 1.0rem;
  }
}


/* 記事詳細ページ
=========================== */
.date_and_category {
  display: flex;
  gap: 1.0rem;
  margin-block: 2.0rem 2.0rem;
}

.info-category.news {
  background-color: #F5EEA8;
}

.info-category.topics {
  background-color: #BADFD1;
}

.back-btn {
  display: flex;
  justify-content: center;
  margin-block: 4.0rem;

  a {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  a:before {
    font-family: 'Material Symbols Rounded';
    font-size: 2.0rem;
    font-weight: 300;
    padding: 0.5rem;
    content: '\e5c4';
    background-color: #222;
    color: #fff;
    width: 3.0rem;
    height: 3.0rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  a:hover {
    opacity: 0.7;
  }
}

@media (max-width:767px) {

  /* 記事パーツ
=========================== */
  .info-item {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.6em 0;
  }

  .info-date {
    width: 6.0em;
  }

  .info-title {
    width: 100%;
  }

  /* カテゴリボタン
=========================== */
  .news-btns,
  .top-news-btns {
    justify-content: center;
  }

  .news-btns {
    justify-content: center;
  }

  button.category_btn:hover {
    opacity: initial;
  }

  /* 記事一覧ページ
=========================== */
  .newsPages .news-btns {
    gap: 1.0rem;
  }


  .newsPages button.category_btn {
    width: 10.0rem;
    font-size: 1.4rem;
    padding-block: 0.6rem;
  }


  /* トップページの最新情報
=========================== */
  .topPage {
    .news-btns {
      margin: 3.0rem 0;
      justify-content: center;
    }
  }


  /* 記事詳細ページ
=========================== */
  .back-btn {
    a {
      gap: 1.0rem;
    }

    a:before {
      font-size: 1.2em;
      width: 1.5em;
      height: 1.5em;
    }
  }
}