@charset "utf-8";

/* ========================================
   NEWS
======================================== */

.news {
    width: 100%;
    margin: 0;
    padding: 55px 20px 100px;
    background: #fff9eb;
    color: #10294b;
}

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

.news-main a {
    color: #10294b !important;
    text-decoration: none;
}
/* ========================================
   CATEGORY
======================================== */

.news-cate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, 900px);
    margin: 0 auto 55px;
    padding: 14px 18px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 41, 75, 0.12);
}


/* ========================================
   「すべて」
======================================== */

.news-cate > a {
    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 140px;
    width: 140px !important;
    min-width: 140px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    color: #10294b !important;
    background: #ffca05;
    border: 0;
    border-radius: 3px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;
}

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


/* ========================================
   WebGeneカテゴリー
======================================== */

.news-cate > .webgene-blog {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;
    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.news-cate > .webgene-blog article {
    position: relative;

    flex: 0 0 140px;
    width: 140px !important;
    min-width: 140px;

    margin: 0 !important;
    padding: 0 !important;
}


/* ========================================
   カテゴリーボタン
======================================== */

.news-cate > .webgene-blog article > a {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 140px !important;
    min-width: 140px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    color: #10294b !important;
    background: #ffffff !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-decoration: none !important;

    transform: none !important;
}


/* ========================================
   区切り線
======================================== */

.news-cate > .webgene-blog article::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 1px;
    height: calc(100% - 14px);
    background: #d8d8d8;
}


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

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

    .news-cate {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .news-cate > a {
        width: 100% !important;
        min-width: 0 !important;
        flex: none;
    }

    .news-cate > .webgene-blog {
        display: contents !important;
    }

    .news-cate > .webgene-blog article {
        width: 100% !important;
        min-width: 0;
        flex: none;
    }

    .news-cate > .webgene-blog article > a {
        width: 100% !important;
        min-width: 0 !important;
    }

    .news-cate > .webgene-blog article::before {
        content: none;
    }
}
/* ========================================
   NEWS LIST
======================================== */

.news-main .webgene-blog {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.news-main .webgene-blog article {
    width: 100%;
    margin: 0;
    font-size: 16px;
}

.news-main .webgene-blog article > a {
    position: relative;
    display: block;
    width: 100%;
    min-height: 95px;
    margin: 0;
    padding: 23px 32px;
    color: #10294b !important;
    background: #ffffff;
    border: 0;
    box-shadow:
        0 3px 10px rgba(16, 41, 75, 0.08),
        0 1px 3px rgba(16, 41, 75, 0.05);
    text-decoration: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.news-main .webgene-blog article:first-child > a,
.news-main .webgene-blog article:last-child > a {
    border: 0;
}

.news-main .webgene-blog article > a:hover {
    background: #ffffff;
    opacity: 0.8;
    box-shadow:
        0 6px 16px rgba(16, 41, 75, 0.12),
        0 2px 5px rgba(16, 41, 75, 0.06);
    transform: translateY(-2px);
}


/* ========================================
   NEWS TEXT
======================================== */

.newsTextWrap {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
    height: auto;
}


/* ========================================
   DATE + CATEGORY
======================================== */

.top-news__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.newsItemTime {
    margin: 0;
    color: #10294b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.newsItemCate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 58px;
    margin: 0;
    padding: 4px 10px;
    color: #10294b !important;
    background: #ffffff;
    border: 1px solid #10294b;
    border-radius: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}


/* ========================================
   NEWS TITLE
======================================== */

.newsItemTit {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #10294b;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}


/* ========================================
   Optional Text
======================================== */

.newsItemText {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 5px 0 0;
    color: #6a6a6a;
    font-size: 12px;
}

.newsItem-text {
    color: #6a6a6a;
    font-size: 12px;
}


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

.newsCatch img {
    display: block;
    width: 100%;
    height: 180px;
    min-width: 0;
    object-fit: cover;
}


/* ========================================
   PAGINATION
======================================== */

.webgene-pagination {
    width: 100%;
    margin-top: 55px;
}

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

.webgene-pagination > ul > li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #10294b !important;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    list-style: none;
}

.webgene-pagination > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #10294b !important;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* 選択中 */

.webgene-pagination > ul > li.selected {
    position: relative;
    color: #10294b !important;
    background: #ffca05;
    border-radius: 4px;
}

.webgene-pagination > ul > li.selected::after {
    content: none;
}

.webgene-pagination > ul > li.selected > a {
    color: #10294b !important;
}


/* hover */

.webgene-pagination > ul > li:hover {
    color: #10294b !important;
    background: #fff1a8;
    border-radius: 4px;
}

.webgene-pagination > ul > li:hover > a {
    color: #10294b !important;
}


/* ========================================
   Previous / Next
======================================== */

.prev,
.next {
    display: flex !important;
    position: relative;
    font-size: 0 !important;
    background: transparent !important;
}

.prev::before,
.next::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #10294b;
    border-right: 2px solid #10294b;
}

.prev::before {
    transform: rotate(-135deg);
}

.next::before {
    transform: rotate(45deg);
}


/* ========================================
   NEWS DETAIL
======================================== */

.newsDetail {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    background: #fff9eb;
}

.newsDetail-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: min(calc(100% - 40px), 900px);
    margin: 50px auto 80px;
    padding: 50px 60px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(16, 41, 75, 0.08);
}

.newsDetail-wrap-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffca05;
}

.newsDetail-wrap-title h2 {
    margin: 0;
    color: #10294b;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}

.newsDetailCate {
    display: block;
    width: fit-content;
    padding: 5px 12px;
    color: #10294b !important;
    background: #ffffff;
    border: 1px solid #10294b;
    border-radius: 0;
    font-size: 12px;
}


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

.newsDetailTxt {
    padding-bottom: 16px;
    color: #10294b;
    font-size: 16px;
    line-height: 2;
}

.newsDetailTxt h2 {
    margin: 40px 0 24px;
    padding: 14px 18px;
    color: #10294b;
    background: #fff6cf;
    border-left: 5px solid #ffca05;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
}

.newsDetailTxt h3 {
    margin: 32px 0 18px;
    padding-bottom: 10px;
    color: #10294b;
    border-bottom: 2px solid #ffca05;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
}

.newsDetailTxt p {
    margin: 0 0 20px;
}


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

.newsDetailImg img {
    display: block;
    width: min(100%, 800px);
    max-height: 520px;
    margin: 0 auto;
    object-fit: cover;
}


/* ========================================
   Detail Pagination
======================================== */

.newsDetail-pagelink {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem auto;
}


/* ========================================
   1024px以下
======================================== */

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

    .news {
        padding-top: 50px;
    }

    .news-main {
        width: min(100%, 820px);
    }
}


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

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

    .news {
        padding: 35px 15px 60px;
    }


   


    /* ========================================
       NEWS LIST
    ======================================== */

    .news-main {
        width: 100%;
    }

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

    .news-main .webgene-blog article > a {
        min-height: 0;
        padding: 20px 18px;
    }

    .newsTextWrap {
        gap: 11px;
    }

    .top-news__meta {
        gap: 10px;
    }

    .newsItemTime {
        font-size: 10px;
    }

    .newsItemCate {
        min-width: 50px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .newsItemTit {
        font-size: 14px;
        line-height: 1.7;
    }

    .newsItemText,
    .newsItem-text {
        font-size: 10px;
    }


    /* ========================================
       PAGINATION
    ======================================== */

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

    .webgene-pagination > ul {
        gap: 7px;
    }

    .webgene-pagination > ul > li {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }


    /* ========================================
       DETAIL
    ======================================== */

    .newsDetail-wrap {
        gap: 24px;
        width: calc(100% - 30px);
        margin: 30px auto 50px;
        padding: 30px 20px;
    }

    .newsDetail-wrap-title h2 {
        font-size: 18px;
    }

    .newsDetailCate {
        font-size: 10px;
    }

    .newsDetailTxt {
        font-size: 14px;
        line-height: 1.9;
    }

    .newsDetailTxt h2 {
        margin: 32px 0 20px;
        padding: 12px 14px;
        font-size: 19px;
    }

    .newsDetailTxt h3 {
        font-size: 17px;
    }

    .newsDetail-pagelink {
        gap: 12px;
    }
}


/* ========================================
   414px以下
======================================== */

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

    .news {
        padding-inline: 12px;
    }

    .news-main .webgene-blog article > a {
        padding: 18px 15px;
    }
}

/* ========================================
   NEWS DETAIL PDF
======================================== */

.newsDetailPdf {
    width: 100%;
    margin: 32px 0 0;
}

.newsDetailPdf:empty {
    display: none;
}

.newsDetailPdf a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: min(100%, 520px);
    min-height: 64px;

    padding: 16px 55px 16px 22px;

    color: #10294b !important;
    background: #ffffff;

    border: 1px solid #ffca05;
    border-radius: 5px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    text-decoration: none;

    transition:
        background-color .3s ease,
        opacity .3s ease;
}


/* PDFアイコン */

.newsDetailPdf a::before {
    content: "PDF";

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 28px;

    color: #ffffff;
    background: #fe511d;

    border-radius: 3px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


/* 右矢印 */

.newsDetailPdf a::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 24px;

    width: 9px;
    height: 9px;

    border-top: 2px solid #10294b;
    border-right: 2px solid #10294b;

    transform:
        translateY(-50%)
        rotate(45deg);
}

.newsDetailPdf a:hover {
    background: #fff9eb;
    opacity: .8;
}


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

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

    .newsDetailPdf {
        margin-top: 24px;
    }

    .newsDetailPdf a {
        min-height: 58px;
        padding:
            14px
            45px
            14px
            16px;

        font-size: 14px;
    }

    .newsDetailPdf a::before {
        width: 38px;
        height: 26px;
        font-size: 10px;
    }

    .newsDetailPdf a::after {
        right: 18px;
    }
}

/* ========================================
   NEWS DETAIL 一覧へボタン
======================================== */

.newsDetail-pagelink{
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 48px auto 0;
}

.newsDetail-pagelink a{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 190px;
  min-height: 44px;
  padding: 10px 42px 10px 20px;
  color: #0b2344 !important;
  background: #ffc414;
  border: 1px solid #ffc414;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background-color .3s ease,
    color .3s ease;
}

/* 右矢印 */
.newsDetail-pagelink a::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #0b2344;
  border-right: 1.5px solid #0b2344;
  transform: translateY(-50%) rotate(45deg);
  transition:
    right .3s ease,
    border-color .3s ease;
}

/* hover */
.newsDetail-pagelink a:hover{
  color: #ffc414 !important;
  background: transparent;
}

.newsDetail-pagelink a:hover::after{
  right: 13px;
  border-color: #ffc414;
}


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

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

  .newsDetail-pagelink{
    margin-top: 36px;
  }

  .newsDetail-pagelink a{
    width: 180px;
    min-height: 44px;
    padding: 10px 40px 10px 18px;
    font-size: 13px;
  }

}