@charset "utf-8";
@import url("subpage.css");
/* news.css — Newsページ専用（共通部分は subpage.css） */
/* ════════════════════════════════════════
   4. NEWS SECTION
   背景: shared/bg_news.jpg (淡青テクスチャ)
════════════════════════════════════════ */
.news {
  background-color: #e8f0f8;   /* bg_news.jpg 読み込みまでのフォールバック */
  background-image: url('../shared/bg_news.jpg');
  background-size: contain;
  background-position: center;
  padding: 3.5rem 0 5rem;
}

.news h2{
    font-family: var(--font-sans);
    color: var(--color-navy);
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.news_single{
  padding: 3.5rem 0 5rem;
}

.news .container,
.news_single .container{
  max-width: 63.75rem;
  padding-inline: 0;
}

/* ── ヘッダー行: [見出し列] [タブ列] ── */
.news__header {
  display: flex;
  align-items: flex-end;   /* タブをNewsタイトル下端に揃える */
  gap: 5rem;
  margin-bottom: 3rem;
}

/* ── 左: ラベル + タイトル ── */
.news__heading {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.news__label {
  font-family: var(--font-serif);
  font-size: var(--font-size-base);   /* 12px */
  color: #254efe;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

/* セクション見出し */
.news__title {
  font-family: var(--font-en);
  font-size: 3.4rem;
  color: #254efe;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

/* ─── カテゴリタブ ─── */
.news__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  align-items: center;
  flex: 1;
  margin-bottom: 0.125rem;  /* News下端に合わせる微調整 */
}

.news__tab {
  font-family: var(--font-serif);
  font-size: var(--font-size-md);
  color: var(--color-text-dark);
  cursor: pointer;
  font-weight: 500;
  padding:0 0.2rem 0.25rem 0.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.news__tab:hover {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.news__tab--active {
  color: var(--color-blue);
  font-weight: 700;
  border-bottom-color: var(--color-blue);
}

.news__tab--active:hover {
  border-bottom-color: var(--color-blue);
}

.news__tab--link {
  margin-left: auto;
  color: var(--color-text-dark);
  font-weight: 600;
}

.news__tab--link:hover {
  color: var(--color-primary);
  border-bottom-color: transparent;
}

/* ─── ニュースグリッド ─── */
.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* プレースホルダーカードサムネイル内テキスト */
.news-card__thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm2);
  color: #c0602a;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ─── ニュースカード (<a> 要素) ─── */
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.news-card::after{
  content:"";
  width: 1px;
  height: 100%;
  background: #d5dce4;
  position: absolute;
  top: 0;
  right: -2.75rem;
  z-index: 1;
}

.news-card:nth-child(3n)::after{
  display: none;
}

.news-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* サムネイル */
.news-card__thumb {
  width: 100%;
  max-width: 17.5rem;
  aspect-ratio: 560 / 232;   /* プレースホルダー div にも高さを確保 */
  object-fit: cover;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.news-card__thumb--placeholder {
  background-color: var(--color-placeholder);
}

/* サムネイル img 要素用スタイル (display:block を上書き) */
img.news-card__thumb {
  display: block;
}

/* カード本文エリア */
.news-card__body {
  padding: 0.9375rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.news-card__desc {
  font-family: var(--font-serif);
  font-size: var(--font-size-sm2);
  color: var(--color-black);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* カテゴリタグ */
.news-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-white);
  padding: 0.125rem 0.5rem;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-card__tag--conference {
  background-color: var(--color-navy);
}

.news-card__tag--paper {
  background-color: var(--color-navy);
}

.news-card__tag--award {
  background-color: var(--color-navy);
}

.news-card__tag--lab {
  background-color: var(--color-navy);
}

/* 日付 */
.news-card__date {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

/*詳細*/
.entry_detail_box{}

    .entry_detail_box > .box_header{
        margin-bottom: 2em;
    }

        .entry_detail_box > .box_header h2{
            margin: 0 0 1em 0;
            font-size: 1.4em;
            font-weight: 500;
            line-height: 1.4;
            border-bottom: 1px solid #ccc;
            padding-bottom: 0.5em;
            position: relative;
        }

            .entry_detail_box > .box_header h2::before{
                content: "";
                display: block;
                width: 5em;
                height: 0;
                border-bottom: 1px solid var(--color-navy);
                position: absolute;
                bottom: -1px;
                left: 0;
            }



        .entry_detail_box > .box_header .entry_meta{
            display: flex;
            justify-content: flex-end;
            font-size: 0.9em;
            padding-right: 0.5em;
            line-height: 1;
        }

            .entry_detail_box > .box_header .entry_category{
                margin-right: 1em;
            }

                .entry_detail_box > .box_header .entry_category ul{
                    display: flex;
                    gap: 0.8em;
                    margin: 0;
                    line-height: 1;
                }

                .entry_detail_box > .box_header .entry_category ul li{
                    margin: 0;
                    padding-left: 0;
                }

                .entry_detail_box > .box_header .entry_category ul li:last-child{
                    margin-right: 0;
                }

                    .entry_detail_box > .box_header .entry_category ul li::before{
                        content: none;
                    }

                    .entry_detail_box > .box_header .entry_category ul li a{
                        color: var(--color-hero-bg);
                        text-decoration: none;
                    }

                    .entry_detail_box > .box_header .entry_category ul li a:hover{
                        color: var(--color-navy);
                        text-decoration: underline;
                    }


            .entry_detail_box > .box_header .entry_date{}

    .entry_detail_box > .box_inner{
        margin-bottom: 5em;
    }

    .news_text_img_wrap{
        margin: 0 1rem;
        display: flex;
        justify-content: flex-start;
        gap: 2rem;
    }

    .news_text_img_wrap .news_text{
        flex: 1;
    }

    .news_text_img_wrap .news_text p{
      margin-bottom: 1rem;
    }

    .news_text_img_wrap .news_img{
        max-width: 17.5rem;
    }

    .entry_detail_box > .box_inner p{
        margin-right: 0;
        margin-left: 0;
    }

    .entry_detail_box > .box_inner ul,
    .entry_detail_box > .box_inner ol{
        margin-right: 1em;
        margin-left: 1em;
    }

    .entry_detail_box > .box_inner table td ul,
    .entry_detail_box > .box_inner table td ol{
        margin: 0 1em;
    }

    .entry_detail_box > .box_footer{
        display: flex;
        justify-content: center;
    }

    .goto_news_top{
        display: flex;
        justify-content: center;
        margin-top: 3em;
    }

        .goto_news_top a{
            font-size: 0.94em;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 1px solid var(--color-navy);
            color: var(--color-hero-bg);
            text-decoration: none;
            border-radius: 100vh;
            padding: 0 2em;
            line-height: 1;
            height: 2.25rem;
            transition: .5s all ease;
        }

        .goto_news_top a:hover{
            background: var(--color-navy);
            color: #fff;
        }

.pagination-container{
    margin-top: 3rem;
}

.pagination-container .pagination{
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

    .pagination-container .pagination li.disabled{
        display: none;
    }

    .pagination-container .pagination li a{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 2rem;
        height: 2rem;
        background: rgba(0,0,0,0.06);
        text-decoration: none;
        color: #111;
        font-size: 0.9em;
        white-space: nowrap;
        transition: .3s all ease;
    }

    .pagination-container .pagination li.number a:hover{
        box-shadow: 0 0 0 1px #2a275e inset;
        background: #fff;
    }

    .pagination-container .pagination li.active a,
    .pagination-container .pagination li.active a:hover{
        background: #2a275e;
        color: #fff;
    }

    .pagination-container .pagination li.next,
    .pagination-container .pagination li.prev{
        margin: 0 1rem;
    }

    .pagination-container .pagination li.next a,
    .pagination-container .pagination li.prev a{
        width: auto;
        background: none;
    }

    .pagination-container .pagination li.next a::after,
    .pagination-container .pagination li.prev a::before{
        color: #2a275e;
        font-family: FontAwesome;
        display: inline-block;
        margin-top: 0.2em;
    }

    .pagination-container .pagination li.next a::after{
        content:"\f0da";
        margin-left: 0.5em;
    }

    .pagination-container .pagination li.prev a::before{
        content:"\f0d9";
        margin-right: 0.5em;
    }

/* ─── News Grid: タブレット ─── */
@media (min-width: 48rem) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
  }
}

/* ─── News Grid: デスクトップ ─── */
@media (min-width: 64rem) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 5.5rem;
  }
}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:575px) {
    .entry_detail_box > .box_footer {
        margin-bottom: 2rem;
    }

    .news{
      padding: 2rem 0 3rem;
      background-size: 120vw auto;
    }

    .news .container{
      max-width: 90vw;
    }

    .news__header{
      display: block;
    }

    .news__heading{
      margin-bottom: 1.5rem;
    }

    .news__title{
      font-size: 2.8rem;
    }

    .news__tabs{
      gap:0.45rem 1rem
    }

    .news__tab{
      font-size: 0.94rem;
    }

    .news__grid{
      width: 80vw;
      margin: 0 auto;
    }

    .news-card__thumb{
      max-width: 100%;
    }

    .news-card::after{
      display: none;
    }

    /*news_single*/
    .news_single{
      padding: 2rem 0 3rem;
    }

    .entry_detail_box{
      width: 90vw;
      margin: 0 auto;
    }

    .news_text_img_wrap{
      flex-direction: column;
      align-items: center;
    }

    .news_text_img_wrap .news_img{}


}