﻿/* News List Page */

.page-root.page-news-list {
  scroll-snap-type: none;
}

.list-container {
  width: 100rem;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 5rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  padding: 4.25rem 0;
  border-bottom: 0.0625rem solid #E5E5E5;
  position: relative;
}

.list-item::after {
  position: absolute;
  width: 0.0625rem;
  height: 4.0625rem;
  top: 4.8125rem;
  left: 6.625rem;
  content: "";
  background: #E5E5E5;
}

.list-item-date {
  width: 5.125rem;
  height: 5.125rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F3F5F8;
  margin-right: 3.75rem;
}

.list-item-day {
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 600;
  color: #0051AE;
}

.list-item-month {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1;
  color: #0051AE;
}

.list-item-body {
  position: relative;
  flex: 1;
  min-height: 5.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.list-item-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  color: #666;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-item-desc {
  margin: 0.375rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #999;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .list-item:hover .list-item-title,
  .list-item:hover .list-item-desc,
  .list-item:hover .list-item-day,
  .list-item:hover .list-item-month {
    color: #0051AE;
  }
}


@media (max-width: 90rem) {
  .list-container {
    width: 100%;
    padding: 0 2rem;
    margin-top: 4rem;
    column-gap: 2.625rem;
  }
}

@media (max-width: 64rem) {
  .list-container {
    grid-template-columns: 1fr;
    row-gap: 0;
    margin-top: 1rem;
    padding: 0 1.5rem;
  }

  .list-item {
    align-items: center;
    min-height: auto;
    padding: 1.5rem 0;
  }

  .list-item::after {
    display: none;
  }

  .list-item-date {
    width: 4.4rem;
    height: 4.4rem;
    margin-right: 1.3rem;
  }

  .list-item-body {
    min-height: 4.4rem;
    justify-content: center;
  }

  .list-item-day {
    font-size: 2.1rem;
  }

  .list-item-month {
    margin-top: 0.375rem;
    font-size: 0.75rem;
  }

  .list-item-title {
    font-size: 1rem;
    line-height: 1.5;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .list-item-desc {
    display: none;
  }
}

@media (max-width: 750px) {
  .list-item-date {
    width: 3.9rem;
    height: 3.9rem;
  }

  .list-item-body {
    min-height: 3.9rem;
  }

  .list-item-day {
    font-size: 1.75rem;
  }

  .list-item-month {
    font-size: 0.68rem;
  }
}
