@charset "utf-8";

.l-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 50px;
  border-radius: 100px;

  p {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }
}

.c-btn:hover {
  opacity: 0.7;
}

.c-arrow-btn {
  justify-content: space-between;
  padding: 0 15px 0 25px;
  min-width: 188px;
  height: 50px;
  background: #16928d;
  transition: background-color 0.3s ease;
}

.c-arrow-btn::after {
  content: "";
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fc883c url("https://mountfield.co.jp/system_panel/uploads/images/btn-arrow-white.svg") no-repeat center center / 30%;
}

.c-arrow-btn:hover {
  opacity: 1;
  background: var(--color-l-green);
}

.c-heading__en {
  margin-top: -0.2em;
  font-family: var(--font-elms);
  font-size: 80px;
  line-height: 1.2;
  background: linear-gradient(180deg, #16928d 0%, #81d2c5 32%, #f4af96 68%, #ffb437 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  @media (width < 768px) {
    font-size: 60px;
  }
}

.c-heading__ja {
  margin-top: -0.2em;
  opacity: 0.7;
  font-weight: 500;
  line-height: 1.313;
}

.c-sub-heading__en {
  font-family: var(--font-roboto);
  color: var(--color-l-green);
  font-size: 30px;
  line-height: normal;
}

.c-sub-heading__ja {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-green);
}

.c-date {
  font-size: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--color-l-green);
  line-height: 21px;
  font-size: 13px;
}

.c-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(170, 47%, 66%, 0.4);
  min-width: 56px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--color-green);
  line-height: calc(16 / 12);
  font-weight: 500;
}

.c-news-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  padding: 30px 20px 24px;
  border-bottom: 1px solid var(--color-l-green);
}

article:first-of-type .c-news-item {
  border-top: 1px solid var(--color-l-green);
}

.c-news-item:hover {
  opacity: 0.7;
}

.c-news-item__date-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.c-news-item__title {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

.webgene-pagination {
  justify-self: center;
  grid-column: 1 / -1;
  color: #4b4b4b;

  ul .number a {
    background: #ccede8;
    color: #372710;
    line-height: 1;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  ul .number a:hover,
  ul .number.selected a {
    background: var(--color-green);
    color: #fff;
  }

  ul .number.selected a {
    pointer-events: none;
  }

  ul {
    display: flex;
    list-style: none;
    gap: 10px;
    padding-inline-start: 0;
    justify-content: center;
    align-items: center;
  }

  ul .number a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }

  li.next,
  li.prev {
    position: relative;
  }

  li.next {
    margin-left: 20px;
  }

  li.prev {
    margin-right: 20px;
  }

  li.next a,
  li.prev a {
    height: 40px;
    width: 76px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  li.prev a {
    justify-content: end;
  }

  li.next:hover::after,
  li.prev:hover::after {
    background: url("https://mountfield.co.jp/system_panel/uploads/images/page-arrow-green.svg") no-repeat center center / contain;
  }

  li.prev:after,
  li.next:after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 40px;
    height: 40px;
    background: url("https://mountfield.co.jp/system_panel/uploads/images/page-arrow-l-green.svg") no-repeat center center / contain;
    transition: all 0.3s ease;
  }

  li.prev:after {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
  }

  li.next:after {
    right: 0;
  }
}
