@charset "UTF-8";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.news-page,
.news-page *,
.news-page *::before,
.news-page *::after {
  box-sizing: border-box;
}

.news-page {
  --news-green: #214b37;
  --news-green-deep: #173a2b;
  --news-cream: #f5f0e7;
  --news-ink: #4b4a44;
  --news-line: rgba(33, 75, 55, 0.13);
  overflow: hidden;
  color: var(--news-ink);
  background: var(--news-cream);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.news-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  min-height: 490px;
  overflow: hidden;
  background: var(--news-cream);
}

.news-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  justify-content: center;
  padding: 44px 72px 112px max(9vw, 80px);
  background: var(--news-cream);
  clip-path: polygon(0 0, 84% 0, 100% 35%, 85% 100%, 0 100%);
}

.news-hero__copy h1,
.news-hero__copy p {
  margin: 0;
}

.news-hero__copy h1 {
  color: var(--news-green);
  font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(44px, 4vw, 62px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.1em;
}

.news-hero__copy p {
  max-width: 580px;
  margin-top: 30px;
  color: #55534d;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.035em;
}

.news-hero__visual {
  position: relative;
  min-height: 490px;
  margin-left: -16%;
  overflow: hidden;
}

.news-hero__visual img {
  display: block;
  width: 116%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  object-position: 53% center;
}

.news-hero__wave {
  position: absolute;
  z-index: 4;
  right: -2%;
  bottom: -1px;
  left: -2%;
  height: 124px;
  background: linear-gradient(90deg, #173a2b 0%, #214b37 54%, #193d2e 100%);
  clip-path: polygon(
    0 48%,
    4% 52%,
    8% 43%,
    13% 50%,
    18% 46%,
    24% 35%,
    31% 23%,
    36% 38%,
    42% 47%,
    48% 34%,
    55% 22%,
    62% 8%,
    68% 17%,
    74% 10%,
    80% 0,
    86% 8%,
    92% 5%,
    100% 12%,
    100% 100%,
    0 100%
  );
}

.news-hero__wave::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 20%, rgba(255, 255, 255, 0.035) 33%, transparent 45% 67%, rgba(255, 255, 255, 0.025) 80%, transparent);
  content: "";
}

.news-list {
  padding: 76px 32px 88px;
  background: var(--news-cream);
}

.news-list__inner {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.news-cms > .webgene-component {
  min-height: 420px;
}

.news-cms > .webgene-component > span {
  display: block;
  padding: 150px 24px;
  color: #77766f;
  text-align: center;
}

.news-style-contract {
  display: none;
}

.news-cms > .webgene-blog {
  display: block;
}

.news-item {
  position: relative;
  border-bottom: 1px solid var(--news-line);
  transition: background-color 160ms ease;
}

.news-item:first-child {
  border-top: 1px solid var(--news-line);
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.26);
}

.news-item__link {
  display: grid;
  grid-template-columns: 132px 150px minmax(0, 1fr) 36px;
  align-items: center;
  min-height: 112px;
  padding: 24px 14px;
  color: inherit;
  column-gap: 24px;
  text-decoration: none;
}

.news-item__date,
.news-item__category,
.news-item__title {
  margin: 0;
}

.news-item__date {
  color: #77766f;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.news-item__category {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 18px;
  color: #fff;
  background: var(--news-green);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.news-item__category[data-category="お知らせ"] {
  background: #4d4c47;
}

.news-item__category[data-category="採用情報"] {
  background: #cc5518;
}

.news-item__title {
  color: var(--news-green);
  font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.news-item__arrow {
  justify-self: center;
  color: var(--news-green);
  font-family: serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.webgene-pagination {
  margin-top: 50px;
}

.webgene-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.webgene-pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.webgene-pagination a,
.webgene-pagination span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--news-green);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.webgene-pagination .active span,
.webgene-pagination .active a,
.webgene-pagination .selected span,
.webgene-pagination .selected a {
  color: #fff;
  background: var(--news-green);
}

.webgene-pagination .prev a,
.webgene-pagination .next a {
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.webgene-pagination .prev a::before,
.webgene-pagination .next a::before {
  color: var(--news-green);
  font-family: serif;
  font-size: 32px;
  line-height: 1;
}

.webgene-pagination .prev a::before {
  content: "‹";
}

.webgene-pagination .next a::before {
  content: "›";
}

@media (max-width: 900px) {
  .news-hero {
    grid-template-columns: 54% 46%;
    min-height: 430px;
  }

  .news-hero__copy {
    min-height: 430px;
    padding: 38px 40px 104px 7vw;
    clip-path: polygon(0 0, 80% 0, 100% 36%, 84% 100%, 0 100%);
  }

  .news-hero__copy p {
    max-width: 390px;
    font-size: 14px;
  }

  .news-hero__visual,
  .news-hero__visual img {
    min-height: 430px;
  }

  .news-list {
    padding-right: 24px;
    padding-left: 24px;
  }

  .news-item__link {
    grid-template-columns: 110px 124px minmax(0, 1fr) 28px;
    min-height: 102px;
    padding-right: 8px;
    padding-left: 8px;
    column-gap: 16px;
  }

  .news-item__date,
  .news-item__category {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .news-hero {
    display: block;
    min-height: 570px;
  }

  .news-hero__visual {
    position: absolute;
    inset: 0;
    min-height: 570px;
    margin: 0;
  }

  .news-hero__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 240, 231, 0.96) 0 42%, rgba(245, 240, 231, 0.58) 60%, rgba(23, 58, 43, 0.12) 100%);
    content: "";
  }

  .news-hero__visual img {
    width: 100%;
    min-height: 570px;
    object-position: 56% center;
  }

  .news-hero__copy {
    min-height: 500px;
    justify-content: flex-start;
    padding: 78px 28px 148px;
    background: transparent;
    clip-path: none;
  }

  .news-hero__copy h1 {
    font-size: 44px;
  }

  .news-hero__copy p {
    max-width: 340px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.85;
  }

  .news-hero__copy br {
    display: none;
  }

  .news-hero__wave {
    height: 94px;
    clip-path: polygon(0 45%, 12% 55%, 24% 42%, 37% 52%, 50% 34%, 65% 47%, 80% 25%, 100% 38%, 100% 100%, 0 100%);
  }

  .news-list {
    padding: 46px 20px 66px;
  }

  .news-item__link {
    grid-template-columns: auto minmax(0, 1fr) 22px;
    min-height: 126px;
    padding: 20px 4px;
    gap: 9px 12px;
  }

  .news-item__date {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }

  .news-item__category {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    min-height: 27px;
    padding: 4px 14px;
    font-size: 12px;
  }

  .news-item__title {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 17px;
  }

  .news-item__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    font-size: 30px;
  }

  .webgene-pagination {
    margin-top: 36px;
  }

  .webgene-pagination ul {
    gap: 8px;
  }

  .webgene-pagination a,
  .webgene-pagination span {
    width: 38px;
    height: 38px;
  }
}
