@charset "utf-8";

.news .container{
  max-width:1040px;
}

/* ===================================
News Category
=================================== */

.news-cate-bg {
  margin: 0 0 5rem;
}

/* Category 見出し */
.news-cate-bg > p {
  text-align: center;
  margin-bottom: 20px;
}

/* カテゴリー全体 */
.news-cate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 20px 0;
  border-top: 1px solid #C5A367;
  border-bottom: 2px solid #C5A367;
}

/* CMSカテゴリー一覧 */
.news-cate .webgene-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.news-cate .webgene-blog:not(:has(.webgene-item)){
  display:none;
}

/* CMS記事要素 */
.news-cate .webgene-item {
  margin: 0;
  padding: 0;
}

/* カテゴリーリンク */
.news-cate a {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: auto;
  color: #888;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s;
}

.news-cate a p {
  margin: 0;
}

/* ホバー */
.news-cate a:hover {
  color: #C5A367;
  opacity: 1;
}

/* 「すべて」を強調 */
.news-cate > a:first-child {
  color: #222;
}

/* ===================================
Tablet
=================================== */

@media screen and (max-width: 1024px) {

  .news-cate {
    gap: 30px;
  }

  .news-cate .webgene-blog {
    gap: 30px;
  }
}

/* ===================================
SP
=================================== */

@media screen and (max-width: 767px) {

  .news-cate-bg {
    margin-bottom: 3rem;
  }

  .news-cate-bg > p {
    margin-bottom: 15px;
  }

  .news-cate {
    justify-content: flex-start;
    gap: 25px;
    padding: 18px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .news-cate::-webkit-scrollbar {
    display: none;
  }

  .news-cate .webgene-blog {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 25px;
    flex-shrink: 0;
  }

  .news-cate a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}


/* ===================================
News List
=================================== */

.news-main > .webgene-blog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.news-main .webgene-item {
  min-width: 0;
  margin: 0;
}

.news-main .webgene-item > a {
  display: block;
  color: #73716D;
  text-decoration: none;
}

.news-main .webgene-item > a:hover {
  opacity: 1;
}

/* ===================================
Thumbnail
=================================== */

.news-main .newsDetailImg {
  position: relative;
  width: 100%;
  aspect-ratio: 1.47 / 1;
  overflow: hidden;
  background: #eee;
  margin-bottom: 12px;
}

/* 画像がない場合 */
.news-main .newsDetailImg > span {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* サムネイル画像 */
.news-main .newsDetailImg > img.webgene-item-main-image {
  position: relative;
  z-index: 2;
}

.news-main .newsDetailImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 画像内のカテゴリーは非表示 */
.news-main .newsDetailImg .category {
  display: none;
}

/* ホバー */
.news-main .webgene-item > a:hover .newsDetailImg img {
  transform: scale(1.05);
}

/* ===================================
Date & Category
=================================== */

.news-main .category-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size:14px;
}

/* 日付 */
.news-main .newsDetailTime {
  color: #1B1B1B;
  font-family: "Noto Serif JP", serif;
  font-size:14px;
}

/* カテゴリー */
.news-main .newsItemCate {
  display: inline-block;
  padding: 6px 12px;
  background:#D8D4CC;
  color: #73716D;
  text-align: center;
  font-size:14px;
}

/* ===================================
Title
=================================== */

.news-main .webgene-item h2,
.news-main .webgene-item h3{
  font-family: "Noto Sans JP", sans-serif;
  font-size:14px;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}

.news-main .webgene-item > a:hover h2 {
  color: #C5A367;
}

/* ===================================
Tablet
=================================== */

@media screen and (max-width: 1024px) {
  .news-main > .webgene-blog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 25px;
  }
}

/* ===================================
SP
=================================== */

@media screen and (max-width: 767px) {
  .news-main > .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  .news-main .newsDetailImg {
    margin-bottom: 10px;
  }

  .news-main .category-box {
    gap: 8px;
    margin-bottom: 8px;
  }

}



/* ===================================
Blog List
=================================== */

/* 3列カードレイアウトを解除 */
.blog .news-main > .webgene-blog {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 記事 */
.blog .news-main .webgene-item {
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
}

/* 記事リンク */
.blog .news-main .newsLink {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  text-decoration: none;
}

.blog .news-main .newsLink:hover {
  opacity: 1;
}

/* ===================================
Date & Category
=================================== */

.blog .news-main .newsItemText {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin: 0;
}

/* 日付 */
.blog .news-main .newsItemTime {
  white-space: nowrap;
  font-family: "Noto Serif JP", serif;
}

/* カテゴリー */
.blog .news-main .newsItemCate {
  display: block;
  min-width: 90px;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
}

/* ===================================
Title
=================================== */

.blog .news-main .newsTextWrap {
  flex: 1;
  min-width: 0;
}

.blog .news-main .newsItemInner {
  min-width: 0;
}

.blog .news-main .newsItemTit {
  font-size: 1rem;
  overflow: hidden;
  font-family: "Noto Serif JP", serif;
  white-space: nowrap;
  text-overflow: ellipsis;

  transition: color 0.3s;
}

/* ホバー */
.blog .news-main .newsLink:hover .newsItemTit {
  color: #C5A367;
}

/* ===================================
Tablet
=================================== */

@media screen and (max-width: 1024px) {

  .blog .news-main .newsLink {
    gap: 15px;
  }

  .blog .news-main .newsItemCate {
    min-width: 75px;
  }
}

/* ===================================
SP
=================================== */

@media screen and (max-width: 767px) {

  .blog .news-main .newsLink {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0;
  }

  .blog .news-main .newsItemText {
    gap: 10px;
  }

  .blog .news-main .newsItemCate {
    min-width: auto;
    padding: 3px 12px;
  }

  .blog .news-main .newsTextWrap {
    width: 100%;
  }

  .blog .news-main .newsItemTit {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}


@media screen and (max-width: 1279px) {
}

@media screen and (max-width: 1024px) {

}

@media screen and (max-width: 767px) {
}

/*ページネーション*/
.webgene-pagination {
  width: 100%;
  grid-column: 1 / 3;
}
.webgene-pagination>ul {
  display: flex;
  padding: 0;
  justify-content: center;
}
.webgene-pagination>ul>li {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 10px 0;
  list-style: none;
}
.webgene-pagination>ul>li a{
  width: 56px;
  height: 56px;
  text-align: center;
  color:#73716D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.webgene-pagination>ul>li.selected a{
  color: #202327 !important;
}

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color: #202327 !important;
}
.webgene-pagination>ul>li:hover{
  color:#73716D;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#73716D !important;
}

.webgene-pagination>ul>li.next a,
.webgene-pagination>ul>li.prev a{
  color:#73716D !important;
  font-size: 14px;
}

.webgene-pagination>ul>li.next a:hover,
.webgene-pagination>ul>li.prev a:hover{
  color:#73716D !important;
}

@media screen and (min-width: 768px) {
  .webgene-pagination {
    width: 100%;
    grid-column: 1 / 4;
  }
}
@media screen and (max-width: 767px) {
}


/* ===================================
News Detail
=================================== */

/* ===================================
Date & Category
=================================== */

.news-detail .newsDetail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* 日付 */
.news-detail .newsDetailTime {
  color: #1B1B1B;
  font-family: "Noto Serif JP", serif;
}

/* カテゴリー */
.news-detail .newsItemCate {
  display: inline-block;
  padding: 4px 15px;
  background: #D8D4CC;
  color: #73716D;
  text-align: center;
  font-size:14px;
  min-width:130px;
}

/* ===================================
Title
=================================== */

.news-detail .newsDetailTit {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 0.833rem + 0.56vw, 1.5rem);
  font-weight: 400;
  margin: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid #D8D4CC;
  overflow-wrap: anywhere;
  margin-bottom: 2rem;
}

/* ===================================
Image
=================================== */

.news-detail .newsDetailImg {
  max-width: 800px;
  margin: 80px auto 40px;
  background: #eee;
  aspect-ratio: 960 / 660;
  overflow: hidden;
}


/* サムネイル */
.news-detail .newsDetailImg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
Body
=================================== */

.news-detail .newsDetailTxt {
  max-width: 800px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  line-height: 2;
}

/* 本文内の段落 */
.news-detail .newsDetailTxt p {
  margin-bottom: 20px;
}

/* 本文内の見出し */
.news-detail .newsDetailTxt h2,
.news-detail .newsDetailTxt h3,
.news-detail .newsDetailTxt h4 {
  font-weight: 500;
  margin: 30px 0 15px;
}

.news-detail .newsDetailTxt h2 {
  padding: 15px 20px;
  border-left: 4px solid #C5A367;
  background: #F0F0F0;
  font-size:clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
}

.news-detail .newsDetailTxt h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size:clamp(1rem, 0.917rem + 0.28vw, 1.25rem);
}

/* 本文内の画像 */
.news-detail .newsDetailTxt img {
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}

.pdfLink[href=""],
.pdfLink:not([href]) {
  display: none;
}

/* ===================================
Bottom Divider
=================================== */

.news-detail .webgene-blog {
  padding-bottom: 80px;
  border-bottom: 1px solid #D8D4CC;
}

/* ===================================
Back Button
=================================== */

.news-detail > .line-btn {
  margin: 80px auto 0;
}

/* ===================================
Tablet
=================================== */

@media screen and (max-width: 1024px) {

  .news-detail .newsDetailImg,
  .news-detail .newsDetailTxt {
    max-width: 85%;
  }
}

/* ===================================
SP
=================================== */

@media screen and (max-width: 767px) {

  .news-detail .newsDetail-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .news-detail .newsItemCate {
    padding: 3px 10px;
    min-width: 100px;
    line-height: 1.5;
  }

  .news-detail .newsDetailTit {
    padding-bottom: 25px;
  }

  .news-detail .newsDetailImg {
    max-width: 100%;
    margin: 35px auto 25px;
  }

  .news-detail .newsDetailTxt {
    max-width: 100%;
  }

  .news-detail .newsDetailTxt h2 {
    padding: 12px 15px;
  }

  .news-detail .webgene-blog {
    padding-bottom: 40px;
  }
}
