@charset "UTF-8";

/* ============================================================
  #news news-list
============================================================ */
#news .news-list {
  list-style: none;
  margin: 0;
  padding-bottom: 240px;
}

#news .news-item {
  border-bottom: 1px solid var(--color-gray);
}

#news .news-item:last-of-type {
  border-bottom: none;
}

#news .news-item__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "label text date";
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
}

#news .news-item__label {
  grid-area: label;
  background: var(--color-primary);
  color: var(--color-white);
  width: 111px;
  height: 27px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-inter);
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 2.52px;
}

#news .news-item__date {
  grid-area: date;
  font-size: 20px;
  font-family: var(--font-inter);
}

#news .news-item__text {
  grid-area: text;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  #news .news-list {
    padding-bottom: 72px;
  }
  #news .news-item__link {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label date"
      "text text";
    padding-left: 0;
    padding-right: 8px;
  }
  #news .news-item__text {
    font-size: 14px;
    line-height: 20px;
    padding-left: 1.5em;
  }
  #news .news-item__date {
    font-size: 14px;
  }
}

/* ============================================================
   color-line
============================================================ */
#news .color-line {
  height: 8px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 50%,
    var(--color-primary) 100%
  );
}

/* ============================================================
   past-news スライダー
============================================================ */
#news .past-news {
  padding-top: 168px;
}

#news .past-news-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 49px;
  letter-spacing: 5.12px;
  text-align: center;
  padding-bottom: 112px;
}

#news .news-card {
  background: #fff;
  max-width: 338px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#news .news-card__image {
  max-width: 338px;
  width: 100%;
  aspect-ratio: 338 / 237;
  padding-bottom: 32px;
}

#news .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#news .news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#news .news-card__top {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

#news .news-card__label {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  width: 141px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 1em;
  text-indent: 1em;
}

#news .news-card__date {
  font-size: 14px;
  color: #666;
}

#news .news-card__title {
  font-family: var(--font-inter);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2.2px;
  padding-bottom: 24px;
  border-bottom: 5px solid var(--color-primary-light);
}

#news .news-card__text {
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* スライダー全体 */
#news .swiper {
  position: relative;
  padding: 0 64px;
  overflow: hidden;
}

#news .swiper-button-prev,
#news .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  z-index: 10;
}

#news .swiper-button-prev {
  left: 0px;
}

#news .swiper-button-next {
  right: 0px;
}

#news .swiper-button-prev img,
#news .swiper-button-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#news .swiper-button-next::after,
#news .swiper-button-prev::after {
  display: none;
}

/* ===================== Responsive ===================== */
@media screen and (max-width: 1024px) {
  #news .swiper {
    padding: 0 40px;
  }
}

@media screen and (max-width: 960px) {
  #news .news-card__top {
    padding-bottom: 24px;
  }
  #news .news-card__label {
    width: 112px;
    height: 28px;
    font-size: 14px;
    line-height: 20px;
  }
  #news .news-card__title {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 3.78px;
    padding-bottom: 8px;
  }
  #news .news-card__text {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 2.52px;
  }
}

@media (max-width: 600px) {
  #news .swiper {
    padding: 0 32px;
  }
  #news .past-news {
    padding-top: 80px;
  }
  #news .past-news-title {
    padding-bottom: 80px;
    font-size: 20px;
  }
  #news .news-card {
    max-width: 100% !important;
    margin: 0 auto;
  }
  #news .news-card__image {
    max-width: initial;
  }

  #news .swiper-slide {
    width: 100% !important;
  }
  #news .swiper-button-prev,
  #news .swiper-button-next {
    width: 24px;
    height: 24px;
    top: calc(50% + 24px);
  }
  #news .news-card__top {
    justify-content: space-between;
  }
  .swiper-button-lock {
    display: block !important;
  }
}

/* ============================================================
   #news-single ニュース詳細ページ
============================================================ */
#news-single .news-single-container {
  position: relative;
  height: 100%;
  z-index: 1;
  padding-bottom: 200px;
}
#news-single .news-single-container:before {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: calc(100% - 400px);
  background-color: var(--color-primary-light);
  bottom: 0;
  left: 0;
  z-index: 0;
  margin-top: 400px;
}

#news-single .sub-title {
  text-align: center;
  padding-bottom: 96px;
}

#news-single .news-single__inner {
  position: relative;
  max-width: 1010px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 120px;
  border: 8px solid var(--color-primary-light2);
  margin-bottom: 120px;
  background-color: var(--color-white);
}

#news-single .news-single__label {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-primary-light3);
  font-size: 14px;
  width: 232px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 14.4px;
}

#news-single .news-single__title {
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 5.72px;
  padding-bottom: 48px;
}

#news-single .news-single__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 763 / 370;
  margin: 0 auto;
  padding-bottom: 56px;
}

#news-single .news-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#news-single .news-single__text {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
}

#news-single .article-nav {
  max-width: 1027px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

#news-single .article-nav__item {
  position: relative;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 327px;
  height: 67px;
  background-color: var(--color-primary);
}

/* 無効状態のナビゲーションリンク */
#news-single .article-nav__item.disabled {
  background-color: #cccccc;
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

#news-single .article-nav__item .text {
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 3.96px;
  width: 100%;
  text-align: center;
}
#news-single .article-nav__item.next .icon,
#news-single .article-nav__item.prev .icon {
  position: absolute;
  width: 31.396px;
  height: 32px;
}
#news-single .article-nav__item.next .icon img,
#news-single .article-nav__item.prev .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#news-single .article-nav__item.next .icon {
  right: 24px;
}

#news-single .article-nav__item.prev .icon {
  left: 24px;
}

#news-single .article-nav__item.next .icon img {
  transform: rotate(180deg);
}

/* ===================== Responsive ===================== */
@media screen and (max-width: 1092px) {
  #news-single .article-nav {
    max-width: 670px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "prev next"
      "news news"
      "news news";
  }
  #news-single .article-nav__item.prev {
    grid-area: prev;
  }

  #news-single .article-nav__item.next {
    grid-area: next;
  }
  #news-single .article-nav__item.news {
    grid-area: news;
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 960px) {
  #news-single .news-single__inner {
    padding: 64px 32px 32px 32px;
  }
  #news-single .article-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  #news-single .news-single-container {
    padding-bottom: 156px;
  }
  #news-single .news-single-container:before {
    height: calc(100% - 240px);
  }
  #news-single .news-single__inner {
    margin-bottom: 40px;
  }
  #news-single .news-single__label {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 2.52px;
    width: 112px;
    height: 46px;
  }
  #news-single .news-single__title {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 3.78px;
    padding-bottom: 24px;
  }
  #news-single .news-single__image {
    aspect-ratio: 271/193;
    padding-bottom: 24px;
  }
  #news-single .news-single__text {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 2.52px;
    text-align: justify;
  }

  #news-single .article-nav {
    gap: 10px;
    max-width: 404px;
  }
  #news-single .article-nav__item {
    width: 197px;
    height: 44px;
  }
  #news-single .article-nav__item .text {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 2.52px;
  }
  #news-single .article-nav__item.next .icon,
  #news-single .article-nav__item.prev .icon {
    width: 21.585px;
    height: 22px;
  }
  #news-single .article-nav__item.next .icon {
    right: 8px;
  }
  #news-single .article-nav__item.prev .icon {
    left: 8px;
  }

  #news-single .news-single__date {
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
  }
}
@media (max-width: 600px) {
  #news-single .article-nav {
    max-width: 354px;
  }
  #news-single .article-nav__item.prev .text {
    padding-left: 22px;
  }
  #news-single .article-nav__item.next .text {
    padding-right: 22px;
  }

  #news-single .article-nav__item {
    width: 100%;
    max-width: 172px;
  }
}

/* 日付のスタイル */
#news-single .news-single__date {
  font-family: var(--font-inter);
  font-size: 18px;
  color: #666;
  margin-top: 8px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
