@charset "UTF-8";

/**
 * news.css
 *
 * ニュース一覧ページ
 *
 *  #Global
 *  #Header override
 *  #FV (First View)
 *  #News List
 *  #Responsive
 */


/* ==========================================================================
   Global (news page)
   ========================================================================== */
body.news {
  overflow-x: hidden;
  background-color: #f2f1ec;
}


/* ==========================================================================
   Header override (light background)
   ========================================================================== */
.l-header--light .header-nav-link {
  color: #081a00;
}

.l-header--light .header-menu-btn span {
  background-color: #081a00;
}


/* ==========================================================================
   FV (First View)
   ========================================================================== */
.l-news-fv {
  position: relative;
  width: 100%;
  height: 736px;
  overflow: hidden;
  background-color: #d9dcdc;
}

.news-fv-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 300px 160px 0;
  z-index: 2;
}

.news-fv-sub {
  margin-top: 0;
  font-family: "Plus Jakarta Sans", "PlusJakartaSans", sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #31c47d;
}

.news-fv-ttl {
  margin-top: 10px;
  font-family: "ZenKakuGothicNew";
  font-weight: 800;
  font-size: 56px;
  line-height: 1.34;
  letter-spacing: -0.04em;
  background: linear-gradient(-76.21deg, #135837 0.41%, #22a164 96.81%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.news-fv-en {
  position: absolute;
  z-index: 0;
  top: 292px;
  left: calc(758px + max(0px, (100vw - 1440px) / 2));
  font-family: "Plus Jakarta Sans", "PlusJakartaSans", sans-serif;
  font-weight: 600;
  font-size: 160px;
  line-height: 1.12;
  white-space: nowrap;
  /* background ショートは clip をリセットするため image のみ指定 */
  background-color: transparent;
  background-image: linear-gradient(96.63deg, #e3e3e3 3.80%, #dedfdf 84.92%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  pointer-events: none;
  user-select: none;
}

.l-news-fv::before,
.l-news-fv::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.l-news-fv::before {
  top: 0;
  right: 0;
  width: 520px;
  height: 507px;
  background: transparent url("../../images/parts/pattern/logo_right_top.svg") no-repeat 0 0 / contain;
}

.l-news-fv::after {
  bottom: 0;
  left: 0;
  width: 520px;
  height: 507px;
  background: transparent url("../../images/parts/pattern/logo_left_bottom.svg") no-repeat 0 0 / contain;
}

/* ==========================================================================
   News List
   ========================================================================== */
.l-news-list {
  position: relative;
  width: 100%;
  background-color: #f2f1ec;
  overflow: hidden;
}

.news-list-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: max(120px, calc(100vw * 120 / 1440)) max(40px, calc(100vw * 40 / 1440)) max(140px, calc(100vw * 140 / 1440));
}

.news-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: max(32px, calc(100vw * 40 / 1440)) max(24px, calc(100vw * 32 / 1440));
}

.news-alert {
  grid-column: 1 / -1;
  padding: 64px 0;
  font-family: "NotoSansJP";
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: #3a3a3a;
}

.news-item {
  display: block;
  width: 100%;
}

.news-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-bottom: 24px;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(8, 26, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-item-inner:hover {
  box-shadow: 0 8px 28px rgba(8, 26, 0, 0.14);
  transform: translateY(-2px);
}

.news-item .img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px;
  overflow: hidden;
  background-color: #f2f1ec;
}

.news-item .img img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease;
}

.news-item-inner:hover .img img {
  transform: translate(-50%, -50%) scale(1.04);
}

.news-item .time {
  margin: 0 24px 10px;
  font-family: "Plus Jakarta Sans", "PlusJakartaSans", "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #888888;
}

.news-item .ttl {
  display: -webkit-box;
  margin: 0 24px 16px;
  overflow: hidden;
  font-family: "NotoSansJP";
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #3a3a3a;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: calc(1.7em * 3);
}

.news-item .category {
  display: inline-block;
  align-self: flex-start;
  margin: auto 24px 0;
  padding: 5px 14px;
  font-family: "Plus Jakarta Sans", "PlusJakartaSans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: #22a164;
  border-radius: 999px;
  text-transform: capitalize;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1200px) {
  /* FV（privacy .privacy-fv-inner タブレットと同様） */
  .l-news-fv {
    height: 560px;
    min-height: unset;
  }

  .news-fv-inner {
    padding: 200px 40px 200px;
    box-sizing: border-box;
  }

  .news-fv-sub {
    font-size: 20px;
  }

  .news-fv-ttl {
    font-size: 44px;
  }

  .news-fv-en {
    top: 210px;
    left: auto;
    right: 0;
    bottom: auto;
    margin: 0;
    font-size: 110px;
    background-color: transparent;
    background-image: linear-gradient(99.73deg, #e3e3e3 3.8%, #dedfdf 84.92%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
  }

  .l-news-fv::before,
  .l-news-fv::after {
    width: 400px;
    height: 390px;
  }

  /* News List */
  .news-list-inner {
    padding: 80px 40px 100px;
  }

  .news-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media screen and (max-width: 768px) {
  /* FV */
  .l-news-fv {
    height: auto;
    min-height: calc(500 / 414 * 100vw);
    display: flex;
    align-items: center;
  }

  .news-fv-inner {
    padding: 29.167vw 5vw 41.667vw;
    min-height: unset;
  }

  .news-fv-sub {
    font-size: 3.75vw;
    margin-top: 0;
  }

  .news-fv-ttl {
    margin-top: 12px;
    font-size: 7.5vw;
    line-height: 1.5;
  }

  .news-fv-en {
    display: none;
  }

  .l-news-fv::before,
  .l-news-fv::after {
    width: 280px;
    height: 273px;
  }

  /* News List */
  .news-list-inner {
    padding: 64px 24px 80px;
  }

  .news-wrap {
    grid-template-columns: 1fr;
    gap: 7.5vw;
  }

  .news-item-inner {
    padding-bottom: 7.246vw;
    border-radius: 10px;
  }

  .news-item .img {
    margin-bottom: 7.2463768116vw;
  }

  .news-item .time {
    margin: 0 7.2463768116vw 3.3333333333vw;
    font-size: 3.333vw;
  }

  .news-item .ttl {
    margin: 0 7.246vw 5.694vw;
    font-size: 3.542vw;
    -webkit-line-clamp: 3;
    min-height: calc(1.7em * 3);
  }

  .news-item .category {
    margin: auto 7.246vw 0;
    padding: 0.966vw 2.415vw;
    font-size: 2.917vw;
  }

  .news-alert {
    padding: 48px 0;
    font-size: 16px;
  }
}

/* ==========================================================================
   Wide screen (1440px and up)
   ========================================================================== */
@media screen and (min-width: 1440px) {
  .l-news-fv::before,
  .l-news-fv::after {
    width: calc(520 / 1440 * 100vw);
    height: calc(507 / 1440 * 100vw);
  }
}
